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
0
votes
0 answers

How to use gettext .po translation files in JavaScript?

I am using the pelican site generator, and inside the theme there I use is a script which loads and displays search results on a HTML page. Some of the strings are hardcoded inside the JavaScript code (the heading text, "There are ${x} results",…
0
votes
1 answer

How to use vuei18n-po?

i can't find a tutorial how to use package vuei18n-po in vue main.ts. Yts documentation is small, and not well descriped. https://www.npmjs.com/package/vuei18n-po. I have never use something like this inside app initiation in vue, so it is realy…
Keso
  • 71
  • 9
0
votes
1 answer

Export Python variable translations not working

I'm developing a custom module in Odoo 13 to generate a personalized XMLS report, and for this I'm using Base Report XLSX from OCA. The issue is that when generating the PO document for the translations, it doesn't recognize the variables that I…
Luis Oseguera
  • 13
  • 1
  • 3
0
votes
1 answer

sphinx gettext inserts empty quotes "" in front of previously matching msg

Currently my worflow when I change things in the original file is this: make gettext to update *.pot files sphinx-intl update -p build/gettext -l fr to create *.po files out of it However, this always results in the following behavior: Some longer…
glades
  • 3,778
  • 1
  • 12
  • 34
0
votes
2 answers

Summarizing data using common characteristics (PO value based on value of lines)

I want to write a script that looks at a unique PO and determines whether that PO is closed or not based on the status of the line. Additionally, I want to sum the values of all rows for each PO. The below example shows what I am after. PO 41000934…
Sam T
  • 23
  • 4
0
votes
1 answer

wordpress plugin translation does not work

i have created a plugin "translation_test" to test the translation capabilities of wordpress. Translation files in the languages directory there is a file translation_test.pot that contains: msgid "Testing" msgstr "" and a file…
pls_help
  • 71
  • 1
  • 2
  • 9
0
votes
1 answer

msgfmt error when generating .po file with xgettext and msginit

When using the following commands to generate a .po file: xgettext test.js -o test.pot -L JavaScript --from-code=UTF-8 msginit -i test.pot -o de.po --locale=de I get the following header: # Copyright (C) 2021 THE PACKAGE'S COPYRIGHT HOLDER # This…
Florat
  • 119
  • 1
  • 7
0
votes
0 answers

Git precommit issues

Well I'm in a project working with react, we have our own git hook, installed like this mkdir -p .git/hooks && git config --local commit.template hooks/commit-msg Also we're using *.po files with i18n library. My issue, every time I do a commit…
Alan Aranda
  • 202
  • 3
  • 14
0
votes
1 answer

How to overwrite sphinx/locale/{language}/LC_MESSAGES/sphinx.po?

I'd like to overwrite admonition labels. Admonitions are directives such as note, warning, and so on. For Japanese, the labels are defined in https://github.com/sphinx-doc/sphinx/blob/master/sphinx/locale/ja/LC_MESSAGES/sphinx.po. Is there a simple…
Junichi Sakaeda
  • 553
  • 4
  • 4
0
votes
1 answer

GetText and PO files not working on XAMPP, PHP 7.3

I know there's a bunch of posts out there about the same problem, but I really can't figure it out. Running XAMPP on OS X, with PHP 7.3.23 PHP snipet :
guylabbe.ca
  • 871
  • 2
  • 11
  • 21
0
votes
1 answer

Is there a plugin for WordPress .po file support in IntelliJ?

Since I've posted this question in several software forms and got no useful answer, I hope to get an answer here from you as my colleges. If you program in WordPress, you might now translations files .po/.mo. I'm looking now for a plugin in IntelliJ…
Mr. Jo
  • 4,946
  • 6
  • 41
  • 100
0
votes
1 answer

Is running makemessages necessary every time?

I'm reading the django documentation for makemessages but the wording is not very clear: Runs over the entire source tree of the current directory and pulls out all strings marked for translation. It creates (or updates) a message file in the…
0
votes
1 answer

Can't get translation using po files

I've got a translation library in my project and I am trying to show some translations but I cannot seem to get gettext to work. Current structure looks like this: Project test.php translations iso-3166-1 ja.po So inside…
SkinnyBetas
  • 461
  • 1
  • 5
  • 27
0
votes
1 answer

How to parse and load text file with Core Data?

I resort to your expertly advice because I am sort of "new" to Objective-C, I have read a couple of books and docs (namely Aaron Hillegass & Stephen G. Kochan's books), but some things are still unclear to me, for lack of practise. To put you in…
Dyn
  • 395
  • 3
  • 18
0
votes
0 answers

PO files and sphinx: can untranslated messages be ignored in the localized docs

I would like to be able to translate only part of a page to another language using sphinx and sphinx-intl. For example, when some content relevant in the native language but not useful in another language. The current default with sphinx is to then…
Fabzi
  • 626
  • 5
  • 15