[Scummvm-git-logs] scummvm-web master -> 574e6d54d3d396b62a8a09867db38b7f814a3702
lotharsm
mail at serra.me
Mon Aug 3 16:51:41 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
574e6d54d3 I18N: Add brazilian portuguese translation to the website
Commit: 574e6d54d3d396b62a8a09867db38b7f814a3702
https://github.com/scummvm/scummvm-web/commit/574e6d54d3d396b62a8a09867db38b7f814a3702
Author: Lothar Serra Mari (mail at serra.me)
Date: 2020-08-03T18:51:27+02:00
Commit Message:
I18N: Add brazilian portuguese translation to the website
Changed paths:
A data/news/pt_BR/.gitignore
include/I18N.php
public_html/index.php
diff --git a/data/news/pt_BR/.gitignore b/data/news/pt_BR/.gitignore
new file mode 100644
index 00000000..d39a7331
--- /dev/null
+++ b/data/news/pt_BR/.gitignore
@@ -0,0 +1,5 @@
+# Ignore generated files.
+*.json
+*.yaml
+*.md
+*.markdown
diff --git a/include/I18N.php b/include/I18N.php
index 567b86d2..570a090f 100644
--- a/include/I18N.php
+++ b/include/I18N.php
@@ -21,7 +21,7 @@ class I18N
$config = \HTMLPurifier_Config::createDefault();
$this->purifier = new \HTMLPurifier($config);
- $langs = ['en', 'it', 'fr', 'ru', 'de', 'es', 'el'];
+ $langs = ['en', 'it', 'fr', 'ru', 'de', 'es', 'pt_BR', 'el'];
foreach ($langs as $key => $value) {
$this->convertLanguageJsonToSmartyIni('lang.' . $value);
$this->updateNewsI18n($value);
diff --git a/public_html/index.php b/public_html/index.php
index 93aaff75..a8b2a45b 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -13,7 +13,8 @@ $available_languages = array(
'de' => 'Deutsch',
'fr' => 'Français',
'it' => 'Italiano',
- 'es' => 'Español',
+ 'es' => 'Español'
+ 'pt_BR' => 'Portuguêsdo Brasil',
'ru' => 'Ð ÑÑÑкий',
'el' => 'Îλληνικά'
);
More information about the Scummvm-git-logs
mailing list