Questions tagged [po]

PO files are the format of the GNU gettext translation files.

PO files are the format of the GNU gettext translation files.

A PO (Portable Objects) file is made up of many entries, each entry holding the relation between an original untranslated string and its corresponding translation. All entries in a given PO file usually pertain to a single project, and all translations are expressed in a single target language.

They usually have to be compiled in MO (Machine Object) file to be used in applications.

263 questions
2
votes
2 answers

Get translated count and fuzzy count ... from po file using regex

I need some regular expression to split PO (language translation file) file's translated count , fuzzy count and total string count. I used PHP for the program, I search every where but couldn't found. please help me.
Lakmal
  • 33
  • 6
2
votes
0 answers

Generate po file from excel table

I have a dictionary in an excel file. Is there any software to generate a po file from the Excel sheet for localization, or I have to create a script to generate the po file? I have found po editors, but I need only to convert the file to po format,…
Jozsef Lehocz
  • 330
  • 3
  • 21
2
votes
1 answer

How To Translate Numbers Using PO File?

I'm trying to translate a WordPress theme to tibetan. Now, the issue is that Tibetan numbers are different than English numbers. I can't put them straightaway as following: msgid "1" msgstr"-tibetan number-" This causes replacement for "1" but not…
Ishan Sharma
  • 700
  • 2
  • 10
  • 19
2
votes
2 answers

Internationalizing java software

For my internship i've been asked to do some research on software internationalization and the current practices and solutions. I've done some research and have come to no viable solution. My project manager has asked that I ask on…
mooseman
  • 38
  • 3
2
votes
1 answer

Orchard Localization PO file usage and Vandelay.TranslationManager

I have tried to understand how to manage and translate Orchard PO files as described in: http://weblogs.asp.net/bleroy/archive/2011/01/13/creating-and-maintaining-orchard-translations.aspx The problem started when I have tried to use some Editors…
manudea
  • 371
  • 2
  • 15
2
votes
3 answers

Line breaks in django po files

How can I use line breaks in translation strings inside .po files? Currently I added "\n" and used {{msg|linebreaks}} in my template, but the string is printed in one single line... how can I print it on multiple lines?
daveoncode
  • 18,900
  • 15
  • 104
  • 159
2
votes
2 answers

Translate Zend Framework website like WPML in Wordpress

I want to know if it's possible to translate a Zend Framework 1 website in a manner similar with the one implemented by WPML for Wordpress. What I want is to make an application that can scan the website source code for translation variables, then…
tsergium
  • 1,176
  • 1
  • 14
  • 26
1
vote
2 answers

how do I generate po file from php array?

I've a php language file, that lists values in an array. I want to transform this into .po file. php file looks like this: "Start Search", "_search2" =>…
user796443
1
vote
1 answer

Yii Po file importer - plurals

How can I add support for plural forms in this Yii class: http://code.google.com/p/yii/source/browse/tags/1.1.8/framework/i18n/gettext/CGettextPoFile.php ? Right now the pattern is $pattern='/(msgctxt\s+"(.*?(?
Alex
  • 66,732
  • 177
  • 439
  • 641
1
vote
2 answers

PoEdit .PO generation error

I have attempted to scan my scripts for all _('gettext') function calls into a new PoEdit catalog. After parsing the files it displays this error: Filename.class.php:11: warning: Although being used in a format string position, the msgid is not a…
pb149
  • 2,298
  • 1
  • 22
  • 30
1
vote
2 answers

How to pass parameter to localization string in ASP.NET core MVC .NET 6?

I am using Portable Object Localization in my ASP.NET MVC app. I need to pass a parameter to a translation string e.g. msgid "The {0} field is required" msgstr[0] "موجودیت {0} لازمی میباشد" I want to use the above example for every required field…
1
vote
2 answers

A .po Generator written in PHP

Is there such a thing out there? A script that's able to create a .po file from .php files dropped inside a directory/
Erji
  • 11
  • 1
1
vote
1 answer

Wordpress theme and language pack

I am building a Wordpress blog system in Spanish and I'd like to have the default theme also translated to "es_ES". I am already running this Wordpress installation in Spanish. What I'd like to know is how to do the same with the default theme…
Roger
  • 8,286
  • 17
  • 59
  • 77
1
vote
1 answer

Wordpress widget php file is not translatable with PO files

Can anyone help me why these strings in the php are not translatable? How am I supposed to change the code, so that the "Jhon" & "Doe" placeholders can be translatable using PO edit? 'first_name_input' => [ 'type' =>…
1
vote
1 answer

Drupal 8 updating custom module's language.po file

I am rather new to Drupal module development and am facing a problem with automatically updating translations of a .po file using the update.php procedure. There is an existing custom module currently used with translations. The custom's module…
Patrick Michiels
  • 239
  • 4
  • 13