You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: development/language/guidelines.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If your language pack is denied and then resubmitted, it is placed at the end of
14
14
15
15
2) Submissions have to be complete. Partial translations are not allowed and will be automatically denied. E-mails, text files and theme-images must also be fully translated.
16
16
17
-
3) Language packs can contain five additional files (one mandatory and four optionals) that are not present in the British English language pack: ``LICENSE`` (mandatory), ``README.md`` (optional) and ``CHANGELOG.md`` (optional). You are free to write whatever you want in the ``README.md`` file and you can list the entire version history in the ``CHANGELOG.md`` file. The ``LICENSE`` file is automatically added during the upload process so you do not have to manually add the file. Its purpose is to inform the user what license is used. Language packs inherit phpBB's license of `GNU General Public License 2.0`_ and no additional or alternative licenses are allowed. All of these additional files must be placed in the ``language/{iso}/`` directory, next to the ``iso.txt`` file. Any other additional file(s) will be detected and your submission will be denied.
17
+
3) Language packs can contain three additional files (one mandatory and four optionals) that are not present in the British English language pack: ``LICENSE`` (mandatory), ``README.md`` (optional) and ``CHANGELOG.md`` (optional). You are free to write whatever you want in the ``README.md`` file and you can list the entire version history in the ``CHANGELOG.md`` file. The ``LICENSE`` file is automatically added during the upload process so you do not have to manually add the file. Its purpose is to inform the user what license is used. Language packs inherit phpBB's license of `GNU General Public License 2.0`_ and no additional or alternative licenses are allowed. All of these additional files must be placed in the ``language/{iso}/`` directory, next to the ``iso.txt`` file. Any other additional file(s) will be detected and your submission will be denied.
18
18
19
19
4) Submissions must have the following files and structure:
Copy file name to clipboardExpand all lines: development/language/validation.rst
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,18 +123,18 @@ The ``composer.json`` from the default language `British English` looks like thi
123
123
124
124
Main block
125
125
^^^^^^^^^^
126
-
The main part of this ``composer.json`` has six different types of information:
126
+
The main block of a language's ``composer.json`` file requires these six fields of information:
127
127
128
-
* ``"name":`` need to start with ``phpbb/phpbb-language-`` and followed by the language iso code e.g. ``phpbb/phpbb-language-de``
129
-
* ``"description":`` should contain a short description for your translation e.g. ``phpBB Forum Software language package Dutch (Casual Honorifics)``
130
-
* ``"type":`` must be: ``"phpbb-language",``. Just leave it as it is!
131
-
* ``"version":`` should be the version number of the language package. This can be different then the phpBB-version it is made for.
132
-
* ``"homepage":`` if you want, you can put an url to your website. If not, left it empty.
133
-
* ``"license":`` must be: ``"GPL-2.0",``. Just leave it as it is!
128
+
* ``"name":`` Must start with ``phpbb/phpbb-language-`` and be followed by the language iso code e.g.: ``phpbb/phpbb-language-de``
129
+
* ``"description":`` Must contain a short description for your translation e.g.: ``phpBB Forum Software language package Dutch (Casual Honorifics)``
130
+
* ``"type":`` Must be: ``"phpbb-language",``. Do not change this!
131
+
* ``"version":`` Should be the version number of the language package. This can be different than the phpBB-version it is made for.
132
+
* ``"homepage":`` You may include a URL to your website, or leave this field empty using empty quotes ``""``
133
+
* ``"license":`` Must be: ``"GPL-2.0",``. Do not change this!
134
134
135
135
Authors
136
136
^^^^^^^
137
-
Allows you to mention the organisation or people who did and maintain the translation. You can just add repeating blocks like this to add more than one person:
137
+
Use this section to credit the authors and maintainers of this translation. You can add repeating blocks like this for each additional author.
138
138
139
139
.. code-block:: json
140
140
@@ -146,31 +146,30 @@ Allows you to mention the organisation or people who did and maintain the transl
146
146
147
147
Support
148
148
^^^^^^^
149
-
Give room to link to your websites or chat channels, you want to direct users to, to report bugs, typographical errors or get support.
149
+
Use this section to provide links to your websites, email, chat channels, etc. where you provide support for this translation.
150
150
151
151
Extra
152
152
^^^^^
153
-
The extra block contains necessary information so that your language package works correctly within a phpBB installation.
154
-
Please don't leave out any of those lines out and fill them out carefully.
155
-
156
-
* ``"language-iso":`` This needs to be your ISO code. In British English it is ``en``. This needs to be same as the directory name e.g. ``language/en/``.
157
-
* ``"english-name":`` The english name of your language package e.g. ``"German (Casual Honorifics)"``. Former first line of ``language/{iso}/iso.txt``.
158
-
* ``"local-name":`` The local name of your language package e.g. ``"Deutsch (Du)"``. Former second line of ``language/{iso}/iso.txt``.
159
-
* ``"phpbb-version":`` This need to represent an existing phpBB release version e.g. ``4.0.1``. Individual naming is not allowed here!
160
-
* ``"direction":`` Put in ``"ltr""`` for "left-to-right" languages (e.g. Italian, Dutch, German) and ``"rtl"`` for right-to-left language (e.g. Arabic).
161
-
* ``"user-lang":`` Input the user language code e.g. "de". Formerly defined in the ``language/{iso}/common.php`` (e.g. ``'USER_LANG' => 'de',``).
162
-
* ``"plural-rule":`` Input the plural rule number of your language. Formerly defined in the ``language/{iso}/common.php`` (e.g. ``'PLURAL_RULE' => 1,``). Check the `plurals`_ section for more details.
163
-
* ``"recaptcha-lang":`` Input the ReCaptcha-Language-Code here. Formerly defined in the ``language/{iso}/captcha_recaptcha.php`` (e.g. ``'RECAPTCHA_LANG' => 'de',``). Check `Google ReCaptcha`_ for further information which code to use.
153
+
The Extra block contains information required for the translation to function correctly within a phpBB installation.
154
+
Please do not omit any of these lines, and fill them out carefully.
155
+
156
+
* ``"language-iso":`` This must be your ISO code. In British English it is ``en``. This is also the same as the directory name e.g. ``language/en/``.
157
+
* ``"english-name":`` The English name of your language package e.g.: ``"German (Casual Honorifics)"``. (Formerly, this was the first line of ``language/{iso}/iso.txt``.)
158
+
* ``"local-name":`` The local name of your language package e.g.: ``"Deutsch (Du)"``. (Formerly, this was the second line of ``language/{iso}/iso.txt``.)
159
+
* ``"phpbb-version":`` This must represent an existing phpBB release version e.g.: ``4.0.1``. Individual naming is not allowed here!
160
+
* ``"direction":`` Use ``"ltr""`` for "left-to-right" languages (e.g.: Italian, Dutch, German) and ``"rtl"`` for right-to-left language (e.g.: Arabic).
161
+
* ``"user-lang":`` Input the user language code, e.g.: "de". (Formerly defined in the ``language/{iso}/common.php`` e.g.: ``'USER_LANG' => 'de',``.)
162
+
* ``"plural-rule":`` Input the plural rule number of your language. (Formerly defined in the ``language/{iso}/common.php`` e.g.: ``'PLURAL_RULE' => 1,``.) Check the `plurals`_ section for more details.
163
+
* ``"recaptcha-lang":`` Input the ReCaptcha-Language-Code here. (Formerly defined in the ``language/{iso}/captcha_recaptcha.php`` e.g.: ``'RECAPTCHA_LANG' => 'de',``.) Check `Google ReCaptcha`_ for further information which code to use.
164
164
165
165
.. note::
166
166
167
-
The composer.json needs be always validate JSON. You can validate it with ``composer.phar``, see: `composer.json validation`_.
167
+
The ``composer.json`` must be valid JSON code. You can validate it using ``composer.phar``, see: `composer.json validation`_.
168
168
169
169
\*/index.htm
170
170
------------
171
171
172
-
The ``index.htm`` files in all folders must either be completely empty, or
173
-
contains the default html body:
172
+
The ``index.htm`` files in all folders must be either completely empty or contain the default html body:
0 commit comments