Skip to content

Commit

Permalink
New structure for i18n & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Dec 29, 2016
1 parent 2aa8ec0 commit ad6626e
Show file tree
Hide file tree
Showing 16 changed files with 2,074 additions and 45 deletions.
17 changes: 11 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
/vendor
/data/i18n/*/LC_MESSAGES/*.mo
/build/
/vendor/

/docs/api
/docs/coverage
/docs/enduser
/docs/src/generic
*.mo

/docs/api/
/docs/coverage/
/docs/enduser/
/docs/src/generic/
/docs/pot/.doctrees/
/docs/pot/generic/
/docs/i18n/*/LC_MESSAGES/generic/

/*.pem
/*.phar
Expand Down
34 changes: 33 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
[main]
host = https://www.transifex.com

[Erebot.Erebot_Module_Uno]
[uno-module.erebot_module_uno]
source_file = data/i18n/Erebot_Module_Uno.pot
source_lang = en_US
type = PO
file_filter = data/i18n/<lang>/LC_MESSAGES/Erebot_Module_Uno.po
minimum_perc = 20

[uno-module.docs_configuration]
source_file = docs/pot/Configuration.pot
source_lang = en
type = PO
file_filter = docs/i18n/<lang>/LC_MESSAGES/Configuration.po
minimum_perc = 20
lang_map = en_US:en, fr_FR:fr

[uno-module.docs_index]
source_file = docs/pot/index.pot
source_lang = en
type = PO
file_filter = docs/i18n/<lang>/LC_MESSAGES/index.po
minimum_perc = 20
lang_map = en_US:en, fr_FR:fr

[uno-module.docs_prerequisites]
source_file = docs/pot/Prerequisites.pot
source_lang = en
type = PO
file_filter = docs/i18n/<lang>/LC_MESSAGES/Prerequisites.po
minimum_perc = 20
lang_map = en_US:en, fr_FR:fr

[uno-module.docs_usage]
source_file = docs/pot/Usage.pot
source_lang = en
type = PO
file_filter = docs/i18n/<lang>/LC_MESSAGES/Usage.po
minimum_perc = 20
lang_map = en_US:en, fr_FR:fr
251 changes: 251 additions & 0 deletions docs/i18n/en/LC_MESSAGES/Configuration.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2016, Erebot
# This file is distributed under the same license as the Erebot_Module_Uno package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Erebot_Module_Uno 1.0.x-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-30 00:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#
# File: ../src/Configuration.rst, line: 10
msgid "Configuration"
msgstr "Configuration"
#
# File: ../src/Configuration.rst, line: 15
msgid "Options"
msgstr "Options"
#
# File: ../src/Configuration.rst, line: 17
msgid "This module provides several configuration options."
msgstr "This module provides several configuration options."
#
# File: ../src/Configuration.rst, line: 0
msgid "Options for |project|"
msgstr "Options for |project|"
#
# File: ../src/Configuration.rst, line: 22
msgid "Name"
msgstr "Name"
#
# File: ../src/Configuration.rst, line: 22
msgid "Type"
msgstr "Type"
#
# File: ../src/Configuration.rst, line: 22
msgid "Default value"
msgstr "Default value"
#
# File: ../src/Configuration.rst, line: 22
msgid "Description"
msgstr "Description"
#
# File: ../src/Configuration.rst, line: 25
msgid "|trigger_uno|"
msgstr "|trigger_uno|"
#
# File: ../src/Configuration.rst, line: 25
# File: ../src/Configuration.rst, line: 28
# File: ../src/Configuration.rst, line: 31
# File: ../src/Configuration.rst, line: 35
# File: ../src/Configuration.rst, line: 38
# File: ../src/Configuration.rst, line: 42
# File: ../src/Configuration.rst, line: 45
# File: ../src/Configuration.rst, line: 48
# File: ../src/Configuration.rst, line: 52
# File: ../src/Configuration.rst, line: 55
# File: ../src/Configuration.rst, line: 58
# File: ../src/Configuration.rst, line: 62
msgid "string"
msgstr "string"
#
# File: ../src/Configuration.rst, line: 25
msgid "\"uno\""
msgstr "\"uno\""
#
# File: ../src/Configuration.rst, line: 25
msgid "The command to use to start a new Uno game."
msgstr "The command to use to start a new Uno game."
#
# File: ../src/Configuration.rst, line: 28
msgid "|trigger_ch|"
msgstr "|trigger_ch|"
#
# File: ../src/Configuration.rst, line: 28
msgid "\"ch\""
msgstr "\"ch\""
#
# File: ../src/Configuration.rst, line: 28
msgid "The command to use to challenge a Wild +4."
msgstr "The command to use to challenge a Wild +4."
#
# File: ../src/Configuration.rst, line: 31
msgid "|trigger_co|"
msgstr "|trigger_co|"
#
# File: ../src/Configuration.rst, line: 31
msgid "\"co\""
msgstr "\"co\""
#
# File: ../src/Configuration.rst, line: 31
msgid "The command to use to choose a color after playing a Wild or Wild +4."
msgstr "The command to use to choose a color after playing a Wild or Wild +4."
#
# File: ../src/Configuration.rst, line: 35
msgid "|trigger_pe|"
msgstr "|trigger_pe|"
#
# File: ../src/Configuration.rst, line: 35
msgid "\"pe\""
msgstr "\"pe\""
#
# File: ../src/Configuration.rst, line: 35
msgid "The command to use to draw a card."
msgstr "The command to use to draw a card."
#
# File: ../src/Configuration.rst, line: 38
msgid "|trigger_jo|"
msgstr "|trigger_jo|"
#
# File: ../src/Configuration.rst, line: 38
msgid "\"jo\""
msgstr "\"jo\""
#
# File: ../src/Configuration.rst, line: 38
msgid "The command to use to join a game after it has been created."
msgstr "The command to use to join a game after it has been created."
#
# File: ../src/Configuration.rst, line: 42
msgid "|trigger_pa|"
msgstr "|trigger_pa|"
#
# File: ../src/Configuration.rst, line: 42
msgid "\"pa\""
msgstr "\"pa\""
#
# File: ../src/Configuration.rst, line: 42
msgid "The command to use to pass after drawing a card."
msgstr "The command to use to pass after drawing a card."
#
# File: ../src/Configuration.rst, line: 45
msgid "|trigger_pl|"
msgstr "|trigger_pl|"
#
# File: ../src/Configuration.rst, line: 45
msgid "\"pl\""
msgstr "\"pl\""
#
# File: ../src/Configuration.rst, line: 45
msgid "The command to use to play a card or combination of cards."
msgstr "The command to use to play a card or combination of cards."
#
# File: ../src/Configuration.rst, line: 48
msgid "|trigger_ca|"
msgstr "|trigger_ca|"
#
# File: ../src/Configuration.rst, line: 48
msgid "\"ca\""
msgstr "\"ca\""
#
# File: ../src/Configuration.rst, line: 48
msgid "The command to use to show how many cards each player has in his hand."
msgstr "The command to use to show how many cards each player has in his hand."
#
# File: ../src/Configuration.rst, line: 52
msgid "|trigger_cd|"
msgstr "|trigger_cd|"
#
# File: ../src/Configuration.rst, line: 52
msgid "\"cd\""
msgstr "\"cd\""
#
# File: ../src/Configuration.rst, line: 52
msgid "The command to use to show the last discarded card."
msgstr "The command to use to show the last discarded card."
#
# File: ../src/Configuration.rst, line: 55
msgid "|trigger_od|"
msgstr "|trigger_od|"
#
# File: ../src/Configuration.rst, line: 55
msgid "\"od\""
msgstr "\"od\""
#
# File: ../src/Configuration.rst, line: 55
msgid "The command to use to show playing order."
msgstr "The command to use to show playing order."
#
# File: ../src/Configuration.rst, line: 58
msgid "|trigger_ti|"
msgstr "|trigger_ti|"
#
# File: ../src/Configuration.rst, line: 58
msgid "\"ti\""
msgstr "\"ti\""
#
# File: ../src/Configuration.rst, line: 58
msgid "The command to use to show for how long a game has been running."
msgstr "The command to use to show for how long a game has been running."
#
# File: ../src/Configuration.rst, line: 62
msgid "|trigger_tu|"
msgstr "|trigger_tu|"
#
# File: ../src/Configuration.rst, line: 62
msgid "\"tu\""
msgstr "\"tu\""
#
# File: ../src/Configuration.rst, line: 62
msgid "The command to use to show whose player's turn it is."
msgstr "The command to use to show whose player's turn it is."
#
# File: ../src/Configuration.rst, line: 65
msgid "start_delay"
msgstr "start_delay"
#
# File: ../src/Configuration.rst, line: 65
msgid "integer"
msgstr "integer"
#
# File: ../src/Configuration.rst, line: 65
msgid "20"
msgstr "20"
#
# File: ../src/Configuration.rst, line: 65
msgid ""
"How many seconds does the bot wait after enough players have joined the game "
"before the game actually starts."
msgstr ""
"How many seconds does the bot wait after enough players have joined the game "
"before the game actually starts."
#
# File: ../src/Configuration.rst, line: 72
msgid ""
"All triggers should be written without any prefixes. Moreover, triggers "
"should only contain alphanumeric characters."
msgstr ""
"All triggers should be written without any prefixes. Moreover, triggers "
"should only contain alphanumeric characters."
#
# File: ../src/Configuration.rst, line: 77
msgid "Example"
msgstr "Example"
#
# File: ../src/Configuration.rst, line: 79
msgid ""
"Here, we enable the Uno module at the general configuration level. Therefore, "
"the game will be available on all networks/servers/channels. Of course, you "
"can use a more restrictive configuration file if it suits your needs better."
msgstr ""
"Here, we enable the Uno module at the general configuration level. Therefore, "
"the game will be available on all networks/servers/channels. Of course, you "
"can use a more restrictive configuration file if it suits your needs better."
58 changes: 58 additions & 0 deletions docs/i18n/en/LC_MESSAGES/Prerequisites.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2011-2016, Erebot
# This file is distributed under the same license as the Erebot_Module_Uno package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Erebot_Module_Uno 1.0.x-dev\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-30 00:14+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#
# File: ../src/Prerequisites.rst, line: 10
msgid "Prerequisites"
msgstr "Prerequisites"
#
# File: ../src/Prerequisites.rst, line: 12
msgid ""
"The following dependencies must be installed in order for this module to work "
"properly:"
msgstr ""
"The following dependencies must be installed in order for this module to work "
"properly:"
#
# File: ../src/Prerequisites.rst, line: 15
msgid "PHP >= 5.2.2"
msgstr "PHP >= 5.2.2"
#
# File: ../src/Prerequisites.rst, line: 16
msgid ""
"Erebot (some specific version may be required depending on this module's "
"version)"
msgstr ""
"Erebot (some specific version may be required depending on this module's "
"version)"
#
# File: ../src/Prerequisites.rst, line: 18
msgid ""
"Erebot_API (some specific version may be required depending on this module's "
"version)"
msgstr ""
"Erebot_API (some specific version may be required depending on this module's "
"version)"
#
# File: ../src/Prerequisites.rst, line: 21
msgid ""
"Erebot (core) adds its own set of `prerequisites`_ which usually superseed "
"those."
msgstr ""
"Erebot (core) adds its own set of `prerequisites`_ which usually superseed "
"those."
Loading

0 comments on commit ad6626e

Please sign in to comment.