Kodi Community Forum
strings.po required fields - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Translations and Languages (https://forum.kodi.tv/forumdisplay.php?fid=90)
+--- Thread: strings.po required fields (/showthread.php?tid=151709)



strings.po required fields - queeup - 2013-01-11

Hello,

I just start converting my add-on's strings.xml to strings.po files. Just I wonder what is the required fields.
Secondly is it necessary adding "#. & #:" to translated files also?

example of using xbmc-xml2po:
PHP Code:
# XBMC Media Center language file
msgid ""
msgstr ""
"Project-Id-Version: XBMC-Addons\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2013-01-11 20:12+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: tr\n"
"Plural-Forms: nplurals=1; plural=0\n" 

example of mine(It's working fine but I don't know side effects of not putting other fields):
PHP Code:
# plugin.video.imdb.trailers language file
msgid ""
msgstr ""
"Language: en\n"

#. Add-on Title
#:
msgctxt "#30000"
msgid "IMDb Trailers"
msgstr ""

#. Settings
#: resources/settings.xml line:4
msgctxt "#30001"
msgid "Video Quality"
msgstr "" 



Re: strings.po required fields - Martijn - 2013-01-12

No need for these.
#. Is used for description what it does
#: is used so we know what file used it



RE: strings.po required fields - alanwww1 - 2013-01-12

Hi !

Plural form will be needed post Frodo when we implement plural support for the language strings.
Why would you want to convert your files anyway ?
Just pass me the data of your addon and I'll put it up to Transifex. All conversion, formatting is done by my sync tool.
Just read here how to up your addon.

Cheers, Attila


RE: strings.po required fields - queeup - 2013-01-12

I know, I read that link before. You have enough things to do I don't want to disturb with this. Also my addon's not very international Smile I want to arrange my self. Thank you tho...


RE: strings.po required fields - alanwww1 - 2013-01-12

Ok. Just let me know if I can be in any help !
Cheers