aboutsummaryrefslogtreecommitdiff
path: root/docs/en/internationalization.md
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2023-05-07 21:35:08 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-07 21:35:08 +0200
commit54c8de86c73ce831df7912428b4f9fd849d67aca (patch)
treeb6c0cf65ae8370ad09f2a1a94384afd60444bb62 /docs/en/internationalization.md
parent9172b65cdbeb3cd19620e38df54669c5d8aa9983 (diff)
docs: language table added (#5375)
* docs: language table added * Update 05_Configuration.md * Update 05_Configuration.md * french docs * Unicode quote and a few fixes (Same search&replace aslo applied to a few other files) --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'docs/en/internationalization.md')
-rw-r--r--docs/en/internationalization.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/en/internationalization.md b/docs/en/internationalization.md
index 741a642c7..f362760d4 100644
--- a/docs/en/internationalization.md
+++ b/docs/en/internationalization.md
@@ -1,6 +1,6 @@
# Contributing to internationalization (i18n)
-Thanks to our contributors, FreshRSS is translated into more than 15 languages. This section will explain the basics of internationalization in FreshRSS, from translating the application to your own language to making a specific change.
+Thanks to our contributors, FreshRSS is translated into [more than 20 languages](./users/05_Configuration.md#language). This section will explain the basics of internationalization in FreshRSS, from translating the application to your own language to making a specific change.
## Overview
@@ -23,7 +23,6 @@ The translation files are quite simple: it’s only a matter of returning a PHP
```php
<?php
-
return array(
'action' => [
'actualize' => 'Actualiser',
@@ -37,7 +36,7 @@ return array(
'about' => 'À propos de FreshRSS',
),
// ...
-];
+);
```
Each value can be referenced by a key: it consists of a series of identifiers separated by dots. The first identifier indicates from which file to extract the translation, while the following ones indicate array entries. Thus, the `gen.freshrss.about` key is referencing the `about` entry from the `freshrss` entry which is part of the main array returned by the `gen.php` file. This allows us to further organize our translation files.