Closed (fixed)
Project:
Quotes
Version:
5.x-1.5
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 May 2008 at 21:45 UTC
Updated:
29 Jun 2008 at 17:22 UTC
Hello,
I am using quotes modules, which is quite good. Despite using the attached .po file to translate it into Spanish, I realized that some strings like the titles on every node (eg. "quotes" or "quotes by authorname") are not translated. How can I translate these strings?
Thank you
Comments
Comment #1
c-c-m commentedAnd there's another translation missing, maybe the most important one: the title of the pages is always "Quote" no matter if it's English or another language... the most visible things (page titles) are the ones that are not translated :(
Comment #2
nancydruUnfortunately, the people who contribute translations (.po files) often do not keep up with changes in the module. I just looked at the translation template (quotes.pot) and see those strings there, so they should be translatable. If you wish to submit an updated po file, I will happily commit it.
Comment #3
nancydruAhah! I found a drupal_set_title that didn't use a translated string. I'll fix that shortly.
Comment #4
c-c-m commentedI'll be waiting for it!
as for quotes.pot I'd like to translate the missing sentences, but I don't understand how it works. I only edited the .po file and changed some sentences, but I don't know how to add new ones.
Comment #5
nancydruI don't either. I create new versions of the template with the Potx module. It's done automatically.
Comment #6
magnus commentedFor translating, start here http://drupal.org/node/11130
You could add the string manually, but much easier is it if you use this module http://drupal.org/project/potx . Then you will be able to extract a POT. If you're on Windows I would suggest you installed http://www.poedit.net/ which makes it easy to translate strings.
When you are satisfied with your work, save it as es.po for a Spanish translation, but first change your settings for the file. By default your Plural Forms probaly are "nplural=INTEGER; plural=EXPRESSION". For Spanish, change it to "nplurals=2; plural=(n != 1)".
Good luck!
Comment #7
nancydruI do run potx to create the translation template that I distribute with the module. If something is missing it means I missed using a "t" function. In that case, open a bug report so I can fix it.
Comment #8
magnus commentedYes and they are perfectly fine. Just wanted to help as I have seen c-c-m asking in other threads how to make translations.
Comment #9
nancydruFix committed to both branches.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.