Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit 7ddb48c

Browse files
author
Rob Hudson
committed
Bug 1209185 - Move locale/ folder to git repo
1 parent 400f49c commit 7ddb48c

File tree

166 files changed

+419473
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+419473
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ media/sitemap*
1717
/static/*/*
1818
!/static/.htaccess
1919
!/static/fonts/.htaccess
20-
locale
2120
xfers/*
2221
humans.txt
2322
tmp
@@ -37,3 +36,4 @@ kuma/static/js/libs/ckeditor/source/ckbuilder
3736
.env
3837
*devmo*.sql*
3938
htmlcov/
39+
locale/**/*.mo

locale/README.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
We are using English strings for gettext message ids.
2+
3+
Instructions:
4+
1) ./manage.py extract
5+
2) ./manage.py verbatimize --rename
6+
This will copy the POT files created in step 1 to templates/LC_MESSAGES
7+
3) ./manage.py merge
8+
9+
Optional:
10+
4) locale/compile-mo.sh locale
11+
12+
New Locales:
13+
Assuming you want to add 'fr':
14+
1) mkdir -p locale/fr/LC_MESSAGES
15+
2) ./manage.py merge
16+
17+
or
18+
1) msginit --no-translator -l fr -i templates/LC_MESSAGES/messages.pot -o fr/LC_MESSAGES/messages.po
19+
2) repeat for other POT files
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: PACKAGE VERSION\n"
4+
"Report-Msgid-Bugs-To: \n"
5+
"POT-Creation-Date: 2014-10-10 08:45-0700\n"
6+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
7+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8+
"Language-Team: LANGUAGE <LL@li.org>\n"
9+
"Language: af\n"
10+
"MIME-Version: 1.0\n"
11+
"Content-Type: text/plain; charset=UTF-8\n"
12+
"Content-Transfer-Encoding: 8bit\n"
13+
"X-Generator: Translate Toolkit 1.6.0\n"
14+
15+
#: media/js/libs/ckeditor/plugins/mdn-link/plugin.js:155
16+
msgid "Launch"
17+
msgstr ""
18+
19+
#: media/js/libs/ckeditor/plugins/mdn-link/dialogs/link.js:462
20+
msgid "Article Title Lookup / Link Text"
21+
msgstr ""
22+
23+
#: media/js/libs/ckeditor/plugins/mdn-link/dialogs/link.js:500
24+
msgid "Attachments"
25+
msgstr ""

0 commit comments

Comments
 (0)