Closed (fixed)
Project:
Image Browser
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Dec 2008 at 01:40 UTC
Updated:
1 Jan 2009 at 21:50 UTC
Jump to comment: Most recent file
Hi
I noticed that I have nontranslated items in Image browser thumbnail window
there are words: 'Messages' and 'Filters'
(both words I have localizes in system but on this page they are probably without gettext)
the same thing is the word 'Insert' for link on page with picture details and with selecting of presets
thanks
Igorik
http://www.somvprahe.sk
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | text.patch | 4.25 KB | jdelaune |
Comments
Comment #1
jdelaune commentedThanks for picking this up.
Messages and Insert fixed. Filter is set by JS so I'll have to save it as variable on page load and get it that way. No issue though.
Comment #2
jdelaune commentedFancy trying this patch for me?
Comment #3
igorik commentedHi
I tried your patch (thanks for it) but it doesn't work for me.
I cleared drupal cache (by clear cache button on performance page), I cleared browser all cache,
but these 3 words I see always in english.
Igorik
Comment #4
jdelaune commentedHow do I add the translations in for testing on my end? It would be nice to include some translations bundled in the module, but I don't have a clue how to do it.
Comment #5
FanisTsiros commentedYou may create a pot file with potx module. I tried some day before but gave me some errors. (Not well defined t() functions) .
I'll give it a try again for image browser tonight and i'll post again.
Thanks for this module.
Comment #6
jdelaune commentedYeah I've managed to create a pot and po file for imagebrowser on my dev. But having problems updating it. See: http://drupal.org/node/343892
Once I get that figured out we should be home straight. If you could find anything on that I would be most grateful :)
Comment #7
FanisTsiros commentedTrying to find something but i am stuck. Also had the same problem with translations when i used IMCE. I had cleared cash, run cron , cleared site cash table with phpmyadmin, browser's cache ... but nothing !
The strange is that, one day my translations just apeared. I dont know why. They just apeared !
Anyway, now trying to figure out (i think) i found, that drupal stores translation data in these two db tables: locales_source and locales_target but in BLOB (binary format).
i can't find when these tables are built (or rebuilded).
Also found at http://api.drupal.org site the code for t() and locale() functions.
I am not a PHP guru and couldn't understand when a string is inserted in table and when inserted in cache.
Maybe you can figure out...
http://api.drupal.org/api/function/t/6
http://api.drupal.org/api/function/locale/6
Cheers !
Comment #8
igorik commentedHi
you may add new language file from http://drupal.org/project/Translations (whatever language you want to use)
then you can add it on http://www.somvprahe.sk/admin/build/translate and finally
you can search for some strings you want to test it on http://www.somvprahe.sk/admin/build/translate/search
Igorik
http://www.somvprahe.sk
Comment #9
FanisTsiros commentedHi Igorik
The problem i was reffering to, was for this Issue http://drupal.org/node/343892. Not for translating my web site from admin/build/translate/search.
For example i have a new module with a .po file and i translate the user interface loacaly with my .po editor. When i upload my new .po file into my module 's /translations directory, new translated strings are not up to date.
Thanks anyway !
Comment #10
andypostFor JS translation check http://drupal.org/node/114774#javascript-translation
Comment #11
jdelaune commentedAh that's cool cheers for that. I have already moved all the strings into php though :p
Comment #12
jdelaune commentedAll strings should now be within
t(). Please contribute translations ( http://drupal.org/node/348340 ) and I will make sure they work before beta2 comes out.