Questions tagged [gettext]

10 questions
20
votes
2 answers

brew install gettext, should i force link it?

I am doing some web development and the translation engine requires gettext. Should I force link it? $ django-admin.py makemessages -l es CommandError: Can't find xgettext. Make sure you have GNU gettext tools 0.15 or newer installed. $ brew…
broinjc
  • 305
3
votes
1 answer

LANGUAGE environment variable ignores `en` (English)

On my Linux systems, I prefer the user interface to be in English. However, as a native speaker of German, I need spell checking to understand both English and German. Yesterday I've learned that you can use the LANGUAGE environment variable to…
2
votes
0 answers

Required git filter without smudge causes "smudge filter failed" error on unrelated(?) operations

(related question for context; tested with git version 2.30.2 on Debian 11) I have written a git custom diff and filter normalising my .po files to make them diff-able by git diff and by GitLab Merge Requests: [diff "podiff"] textconv = "$(git…
Zsar
  • 537
2
votes
0 answers

How to inline complex grep call into git config

I have, following this answer, created an executable file "podiff" for use as a custom diff (and later, hopefully, a filter) calling grep in this way: grep -Ev '^#:|^"POT-Creation-Date|^"PO-Revision-Date|^"Last-Translator' $1 It dutifully seems to…
Zsar
  • 537
1
vote
0 answers

gettext constantly broken after MacPorts upgrade

I use MacPorts on Mac OS X Mountain Lion. This issue has been there for a year: whenever I upgrade MacPorts: sudo port selfupdate this seems to work fine. But then running: sudo port upgrade outdated it always fails at gettext: Error:…
kakyo
  • 340
1
vote
1 answer

Creating new po files with a po editor

I tried some po editor softwares. I wonder why none of do not allow creating a new po file from scratch or adding new entry to an existed one. Is there any hack so they let creating new entries?
Real Dreams
  • 5,408
0
votes
3 answers

How to install GNU gettext on windows 7?

I need to install version 0.15 or higher of GNU's gettext. I've downloaded : http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.3.1.tar.gz from https://www.gnu.org/software/gettext/ However I have no idea how to install it and there's no…
Marijus
  • 103
0
votes
1 answer

After a gettext update be able to check if a translation file has been translated

I am looking for a program that tells me if my PO is already translated or not. Basic question are: Is there any fuzzy, Is there any empty string. The best would be to have this strings displayed so you can translate it and save them one after…
Natim
  • 1,677
0
votes
1 answer

How to load gettext catalogues for libraries and application?

It is my understanding that only one single catalogue can be loaded (one .mo file), as per Translation Workflow Overview §5. The Python example in Finding Message Catalogs at Runtime seems to support this with the assertion that [a]lthough find()…
Zsar
  • 537
0
votes
2 answers

How to install gettext's msgfmt from source?

I want to compile git which fails due to /bin/sh: msgfmt: command not found which is provided by gettext. I'm compiling on a system (Synology DSM 6.1) which has no package manager which easily provides a gettext package out-of-the-box, so I need to…
Kalle Richter
  • 2,472
  • 6
  • 44
  • 64