Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
75fc0140
Commit
75fc0140
authored
Aug 04, 2012
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.i18n
parent
9072db0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.i18n
README.i18n
+5
-5
No files found.
README.i18n
View file @
75fc0140
...
...
@@ -10,7 +10,7 @@ The pronterface.py now uses gettext for the messages it generates.
The corresponding pronterface.pot file is at locale/pronterface.pot
and was generated using
pygettext -o locale/pronterface.pot pronterface.py
pygettext -o locale/pronterface.pot pronterface.py
printrun/pronterface_widgets.py
followed by minor edits to the generated header.
...
...
@@ -20,14 +20,14 @@ now there is only one, for German. New ones can be created:
# Create new pronterface message catalog for a different language
newlang="es" # use the correct code for your language
mkdir -p locale/${newlang}/LC_MESSAGES
cp locale/pronterface.pot locale/${newlanguage}/LC_MESSAGES/
${newlang}
.po
cd locale/${newlanguage}/LC_MESSAGES/
${newlang}
cp locale/pronterface.pot locale/${newlanguage}/LC_MESSAGES/
pronterface
.po
cd locale/${newlanguage}/LC_MESSAGES/
# Edit the .po file to add messages for newlang
msgfmt -o
${newlang}.mo ${newlang}
.po
msgfmt -o
pronterface.mo pronterface
.po
To update a previously created message catalog from the template, use :
msgmerge -U locale/fr/LC_MESSAGES/
${lang}
.po locale/pronterface.pot
msgmerge -U locale/fr/LC_MESSAGES/
pronterface
.po locale/pronterface.pot
As currently coded, the default location for these message catalogs is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment