Skip to content

Commit

Permalink
FEAT(i18n): enable the Occitan translation
Browse files Browse the repository at this point in the history
Refs: #223
  • Loading branch information
dzc34 committed Jan 27, 2020
1 parent 39c24cc commit 463c6f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# CHANGELOG

Contrast-Finder 0.9.6, 2020-0x-xx (unreleased)
Contrast-Finder 0.10.0, 2020-01-xx (unreleased)
---------------------------------

Upgrade-o-meter: just replace the .war file and restart Tomcat

Thanks to:
- @zwiastunsw - PR #220
- @Quenty31 PR #220 Polish translation
- @zwiastunsw PR #223 Occitan translation

### New Feature
- [#220 - i18n: add Polish](https://github.com/Asqatasun/Contrast-Finder/issues/220)
- [#223 - i18n: add Occitan](https://github.com/Asqatasun/Contrast-Finder/issues/223)

### Security
none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ public abstract class AbstractController {
* - comma-separated language codes (ISO 639-1: two-letter codes)
* - order will be the same in the webapp menu
*
* currently : "en,es,fr,pl,pt,ko"
* currently : "en,es,fr,pl,pt,oc,ko"
* can be override in the following file:
* /etc/contrast-finder/contrast-finder.conf
*/
@Value("${languages:en,es,fr,pl,pt,ko}")
@Value("${languages:en,es,fr,pl,pt,oc,ko}")
private String languages;

/**
Expand Down Expand Up @@ -261,6 +261,7 @@ public void setLoadAvailableLanguages(String loadAvailableLanguages) {
switchLang.put("fr", "Passer en français");
switchLang.put("pl", "Przełącz na polski");
switchLang.put("pt", "em Português");
switchLang.put("oc", "Passar a l’occitan");
switchLang.put("ko", "한국어로 전환");

this.textsOfSwitchLanguage = switchLang;
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/main/resources/conf/contrast-finder.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
# - comma-separated language codes (ISO 639-1: two-letter codes)
# - order will be the same in the webapp menu
###############################################
# languages=en,es,fr,pl,pt,ko
# languages=en,es,fr,pl,pt,oc,ko

0 comments on commit 463c6f5

Please sign in to comment.