21 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
551
views
What is the error "msgfmt: cannot locate ITS rules for data/org.freedesktop.NetworkManager.policy.in" while building yocto wpa repo
I am trying to build the meta layer https://github.com/LairdCP/meta-laird-cp
I am using the layer meta-summit-radio-pre-3.4/ for my build. Most of the components build with the exception of 'summit-...
0
votes
1
answer
694
views
msgfmt: cannot locate ITS rules when building gnome desktop
Here is the output of jhbuild build:
*** Building accountsservice *** [36/246]
ninja -j24
[2/7] Generating data/org.freedesktop.accounts.policy with a custom command
FAILED: data/org.freedesktop....
0
votes
1
answer
1k
views
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 (...
1
vote
1
answer
594
views
Is there a command to generate all .mo files from multiple .po files?
I have multiple .po files in a standard directory structure of GNU gettext:
locales/
├── en_US
│ └── LC_MESSAGES
│ └── myapp.po
└── zh_TW
└── LC_MESSAGES
└── myapp.po
I knew that ...
0
votes
0
answers
125
views
PHP strange characters on transalation
I have a application made in PHP, on this application I have the option to translate the page with some languages, but if I try to translate to Spanish the characters with accent marks, shows a ...
1
vote
2
answers
2k
views
PO file header missing or invalid
I'm trying to add en_SG translations to an R package, but I'm met with a gettext error and I haven't seen any source on what's the issue:
list.files('po')
# [1] "R-myPkg.pot"
# [2] "R-en_SG.po"
tools:...
1
vote
0
answers
499
views
PO file to XML with msgfmt: ITS rules not found
I try to convert a PO file, which I created out of a XML file with an its rule over the command xgettext, back to the XML file with translation. But it seems msgfmt doesn't have an option to tell it ...
0
votes
1
answer
459
views
How to run msgfmt using exec in php?
I am trying to use exec command in PHP as follows:
exec("msgfmt /locale/2019_11_26_17.po -o /locale/file.mo")
It is not allowing me to do it. However, if I run this command using terminal, it works.
...
Trupti's user avatar
- 1,015
7
votes
4
answers
4k
views
Compile Git without gettext
I'm trying to compile a static Git 2.17.1 on Debian (Windows Subsystem for Linux):
$ mkdir _git
$ make configure
$ ./configure --prefix=$PWD/_git NO_TCLTK=true NO_GETTEXT=true CFLAGS="${CFLAGS} -...
1
vote
2
answers
468
views
msgfmt returns the wrong line with an error
today I'm having a problem.
I deliberately created a .po file in which there is an error.
I expect that the backtrace error appears on the 39 string.
Instead, the validator shows
test.po:1: ...
9
votes
1
answer
16k
views
How to Compile .po file to .mo file , msgfmt not working [closed]
I have to compile a file .po to .mo with msgfmt, so I installed gettext (newest version) and do chmod 777 to my entire folder.
When I compile the file:
msgfmt /home/myuser/file.po -o /home/myuser/...
4
votes
1
answer
252
views
How to validate positional notation placeholders in format strings with msgfmt?
When using printf-like format strings in a translated text msgfmt --check checks that the translation still contains the placeholders. For example, running xgettext on the following code
printf( ...
Julien's user avatar
- 2,258
0
votes
1
answer
210
views
Why does GNU msgfmt silently omit these strings from catalog?
I'm writing a utility that examines po files, and I'm trying to understand some behavior of msgfmt that I can't explain.
A po-file that I am using for testing (from vlc project) contains these ...
0
votes
2
answers
822
views
The gettext "msgfmt" command exits with status code 0 but does not write an .MO file
I've been making international-ready an application using the gettext family of tools, translating the .po. file to .mo using the msgfmt program. This was working at first, but as of the last few days ...
8
votes
2
answers
2k
views
How do I keep whitespace between {% blocktrans %} and {% plural %} tags without causing msgfmt errors?
I'm rendering some pluralization using the blocktrans tag; here's the relevant snippet in the template file:
{% blocktrans count choice_count=choice_count %}
You have {{ choice_count }} choice:
{% ...