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

c-c-m’s picture

And 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 :(

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Active » Postponed (maintainer needs more info)

Unfortunately, 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.

nancydru’s picture

Ahah! I found a drupal_set_title that didn't use a translated string. I'll fix that shortly.

c-c-m’s picture

I'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.

nancydru’s picture

I don't either. I create new versions of the template with the Potx module. It's done automatically.

magnus’s picture

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

nancydru’s picture

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

magnus’s picture

Yes and they are perfectly fine. Just wanted to help as I have seen c-c-m asking in other threads how to make translations.

nancydru’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fix committed to both branches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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