bordercolors-d icon indicating copy to clipboard operation
bordercolors-d copied to clipboard

Add support for localisation

Open dreadnaut opened this issue 4 years ago • 8 comments

The mailextension rewrite did not carry over localised resources. We should re-add them, at least for the Options page.

  1. [x] Investigate how localised resources work in TB78+
  2. [x] Move English text out of the code
  3. [x] Add at least one other language
  4. Add more languages, possibly using web-ext-translator

dreadnaut avatar Sep 20 '20 12:09 dreadnaut

If you need a German translation, let me know.

speedball2001 avatar Oct 27 '20 10:10 speedball2001

I can do the German translation as well. As speedball already raised the hand, put me down as a backup :-)

ungesundes-halbwissen avatar Nov 09 '20 09:11 ungesundes-halbwissen

Hello, I can translate to French if needed :blush:

bastien30 avatar Jan 04 '21 16:01 bastien30

Thank you for offering to help, the code is now ready to add translations! 🎉

You can use the english strings as template. Note that you only need to translate the message field, the description is only there as guidance.

Feel free to open a pull request, or attach the json file here. This online tool might also be helpful 🙂

dreadnaut avatar Apr 17 '21 23:04 dreadnaut

I'm no good with forks and stuff so here goes :-)

de_DE

"__WET_GROUP__INFO": { "message": "Add-on information" },
"addonDescription": {
"description": "Description of the add-on, as it appears in the Add-ons list.",
"message": "Umfasst das Fenster für Neue Nachrichten mit einem farbigen Rahmen, so dass Du die verschiedenen Identitäten unterscheiden kannst."
},
"__WET_GROUP__OPTIONS": { "message": "Options page" },
"heading-color-selector": {
"description": "The heading above the list of identities, in the options",
"message": "Färbe deine verschiedenen Identitäten ein"
},
"heading-style-selector": {
"description": "The heading above the list of styles, in the options",
"message": "Wähle die Art der Markierung"
},
"heading-size-selector": {
"description": "The heading above the list of style sizes, in the options",
"message": "Wähle die Größe für den Effekt"
},
"__WET_GROUP__SIZES": { "message": "Size labels" },
"size-small": {
"description": "Label for the 'small' size option",
"message": "Schmal"
},
"size-medium": {
"description": "Label for the 'medium' size option",
"message": "Mittel"
},
"size-large": {
"description": "Label for the 'large' size option",
"message": "Breit"
},
"__WET_GROUP__STYLES": { "message": "Style names" },
"style-all-sides": {
"description": "A border along all four sides of the composer",
"message": "Rahmen auf allen Seiten"
},
"style-top-and-bottom": {
"description": "A border at the top and bottom of the composer",
"message": "Rahmen an Ober- und Unterseite"
},
"style-top": {
"description": "A border at the top of the composer",
"message": "Rahmen am oberen Rand"
},
"style-left-side-gradient": {
"description": "A gradient on the left side of the composer",
"message": "Farbverlauf auf der linken Seite"
},
"style-background-top-right-gradient": {
"description": "A gradient in the top-right corner of the composer",
"message": "Farbverlauf in der rechten, oberen Ecke"
},
"style-background-four-corners-gradient": {
"description": "A gradient in each corner of the composer",
"message": "Farbverlauf in allen vier Ecken"
},
"style-background-bottom-gradient": {
"description": "A gradient at the bottom of the composer",
"message": "Farbverlauf am unteren Rand"
},
"style-background": {
"description": "The color is applied to the whole background of the composer",
"message": "Hintergrundfarbe"
}
}

ungesundes-halbwissen avatar Apr 18 '21 17:04 ungesundes-halbwissen

Wow, that was fast! Thank you very much 🙇

I've added it to the repository (https://github.com/dreadnaut/bordercolors-d/commit/c2e53468219aac0898006d451fd5dc86f196b73c), and I'll package a new release later this week.

dreadnaut avatar Apr 18 '21 20:04 dreadnaut

Hi ! I've added issue #23 with French translation :)

bastien30 avatar Apr 19 '21 14:04 bastien30

Thank you! 🙏 Added as well (https://github.com/dreadnaut/bordercolors-d/commit/f27645d4b0e9b744f793b0a2a0c9594e651c25f2)

dreadnaut avatar Apr 19 '21 18:04 dreadnaut