I would like to know how I can translate the gallery titles I use.
The counter of pictures inside a galllery is nicely translated, the title however not.
Example:
In English:
Airplanes
25 Photos
In Dutch:
Airplanes
25 Afbeeldingen
it should be:
In Dutch:
Vliegtuigen
25 Afbeeldingen
How can I translate the title?
With the .mo file I use for the rest of my website it's not working.
The language plugin I use also doesn't translate the title when using language tags [lang_en]Airplanes[/lang_en][lang_nl]Vliegtuigen[/lang_nl]
Any ideas on this?
bee dudler
Member
Posted 4 years ago #
Yes I have. And as you can see in my post, the rest of the gallery is translated nicely. (Including the Admin Panel).
Only the names of my galleries aren't translated.
bee dudler
Member
Posted 4 years ago #
Hi,
sorry got you wrong. If i get you right this time: The galleries can be named individually by yourself under gallery->manage galler->gallery options and there description what i enter there will be shown in the albums as gallery name.
best regards bee
Just to be clear: I tried adding the names of my galleries to the .mo / .po file as well. Didn't work.
Looks like the gettext tag for the gallery title's is missing?
Hmm... guess I need to be a bit more specific:
I would like the custom tiles/name of my galleries to be displayed in two languages. Either with a [lang] or through gettext.
Gallery name / title are currently not GETTEXT enabled, so you can use them only in one language
Are there any plans to make them GETTEXT enabled?
Or even better, [lang] tag compatible?
(Just like with a blog/page title?)
Or is there a good tutorial on how I can do this myself?
nggfunctions.php:
Line 447 & 457:
.$gallerycontent->title.
Changed to:
.__($gallerycontent->title).
that worked for me.
I hope you will include it into the next release, so I won't have to update my nggfunctions.php file at that point. :)
I have a related issue to the one raised by Derice. I wish to create bilingual Welsh/English blogs and websites using your (excellent!) plugin together with Language Switcher. I have created incomplete Welsh .mo and .po files and experimented with these. The admin interface is translated OK - but the elements that are displayed to blog users remain in English. In particular [Show picture list] and [Show as slideshow] appear only in English - even though they have been translated in my Welsh .po file. Derice's solution above might be applicable - but I don't know which file to change.
I have also noticed earlier posts dealing with the issue of "Next>" and "<Prev" in thickbox js files. Am I right in thinking that the only current way of dealing with text that appears in js files is to have one language only - or to have both appear together?
It seems that in NextGen 1.02 the titles are (still) not (yet) Gettext enabled.
Any info on when this will be done?
You can do that in the templates by yourself
What templates are you referring to exactly?
Thanks! I'll have a look and see what I can create. :)
johndeere
Member
Posted 4 years ago #
yeah, thanks! i got it working: http://www.prepaid-pakete.org
I have upgraded to the latest versions of NextGen qTranslate and WordPress and Gettext doesn't appear to work in NextGen gallery. I've followed the template approach (created a gallery-qtrans.php in nggallery folder within my active theme folder) - and used the _e() and __() functions wrapped around my image descriptions and alttext. On pre 1 releases of NextGen this approach worked fine, but now these functions don't work at all. Has anyone got Gettext to work with NextGen and qTranslate (or other language switching plugin)?
I have tried using the old style lang tags: [lang_xx][/lang_xx] and the new style ones: <!--:xx--><!--:--> . Neither work.
Typical - I find the answer straight away after posting. The answer is to use quicktags (e.g. [:en] no closing tag) around the image descriptions and alttext in the Manage Gallery admin area. I'd still like to know why the full tags: <!--:xx--><!--:--> don't work.
Thanks for that tag!
I've been looking all over for that!
Works for Gallery titles as well! :)
seltzdesign
Member
Posted 4 years ago #
@alarch
Hello. I just came across this discussion and see that you have some Welsh .mo and .po files.
I am just in the process of designin a website in wordpress that needs to be in Welsh and English.
Is there any chance you could provide me with the files? That would safe me lots of work and hassle (i dont speak welsh myself).
You say they are incomplete, so maybe with combined effort we can get them completed (i know a lot of very good welsh speakers).
Im also planning on using NextGen so any hints for everything to be smooth would be highly appreciated.
Thanks in advance !