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

CommentFileSizeAuthor
#2 text.patch4.25 KBjdelaune

Comments

jdelaune’s picture

Thanks 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.

jdelaune’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta1
Assigned: Unassigned » jdelaune
Status: Active » Needs review
StatusFileSize
new4.25 KB

Fancy trying this patch for me?

igorik’s picture

Hi

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

jdelaune’s picture

How 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.

FanisTsiros’s picture

You 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.

jdelaune’s picture

Yeah 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 :)

FanisTsiros’s picture

Trying 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 !

igorik’s picture

Hi

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

FanisTsiros’s picture

Hi 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 !

andypost’s picture

jdelaune’s picture

Ah that's cool cheers for that. I have already moved all the strings into php though :p

jdelaune’s picture

Status: Needs review » Fixed

All 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.