parent
226dff6600
commit
eddaa83912
|
@ -20,12 +20,13 @@ Translations will be send back to us regularly and will eventually appear in the
|
|||
|
||||
[source,json]
|
||||
----
|
||||
{ "pad.modals.connected": "Connecté."
|
||||
, "pad.modals.uderdup": "Ouvrir dans une nouvelle fenêtre."
|
||||
, "pad.toolbar.unindent.title": "Dèsindenter"
|
||||
, "pad.toolbar.undo.title": "Annuler (Ctrl-Z)"
|
||||
, "timeslider.pageTitle": "{{appTitle}} Curseur temporel",
|
||||
, ...
|
||||
{
|
||||
"pad.modals.connected": "Connecté.",
|
||||
"pad.modals.uderdup": "Ouvrir dans une nouvelle fenêtre.",
|
||||
"pad.toolbar.unindent.title": "Dèsindenter",
|
||||
"pad.toolbar.undo.title": "Annuler (Ctrl-Z)",
|
||||
"timeslider.pageTitle": "{{appTitle}} Curseur temporel",
|
||||
...
|
||||
}
|
||||
----
|
||||
|
||||
|
@ -71,7 +72,7 @@ alert(window._('pad.chat'));
|
|||
----
|
||||
==== 2. Create translate files in the locales directory of your plugin
|
||||
|
||||
* The name of the file must be the language code of the language it contains translations for (see https://joker-x.github.com/languages4translatewiki/test/[supported lang codes]; e.g. en ? English, es ? Spanish...)
|
||||
* The name of the file must be the language code of the language it contains translations for (see https://joker-x.github.io/languages4translatewiki/test/[supported lang codes]; e.g. en ? English, es ? Spanish...)
|
||||
* The extension of the file must be `.json`
|
||||
* The default language is English, so your plugin should always provide `en.json`
|
||||
* In order to avoid naming conflicts, your message keys should start with the name of your plugin followed by a dot (see below)
|
||||
|
@ -80,7 +81,8 @@ alert(window._('pad.chat'));
|
|||
|
||||
[source, json]
|
||||
----
|
||||
{ "ep_your-plugin.h1": "Heading 1"
|
||||
{
|
||||
"ep_your-plugin.h1": "Heading 1"
|
||||
}
|
||||
----
|
||||
|
||||
|
@ -88,7 +90,8 @@ alert(window._('pad.chat'));
|
|||
|
||||
[source, json]
|
||||
----
|
||||
{ "ep_your-plugin.h1": "Título 1"
|
||||
{
|
||||
"ep_your-plugin.h1": "Título 1"
|
||||
}
|
||||
----
|
||||
|
||||
|
@ -103,8 +106,9 @@ For example, if you want to replace `Chat` with `Notes`, simply add...
|
|||
|
||||
[source,json]
|
||||
----
|
||||
{ "ep_your-plugin.h1": "Heading 1"
|
||||
, "pad.chat": "Notes"
|
||||
{
|
||||
"ep_your-plugin.h1": "Heading 1",
|
||||
"pad.chat": "Notes"
|
||||
}
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue