Skip to content

Commit

Permalink
Merge pull request #10008 from owncloud/add-available-languages
Browse files Browse the repository at this point in the history
Add available languages
  • Loading branch information
kulmann authored Nov 22, 2023
2 parents 4e6cec9 + 1073c51 commit af0285b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .drone.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The version of OCIS to use in pipelines that test against OCIS
OCIS_COMMITID=a4e7a64cd066d40a6320ddc00eb70ed800dd59b0
OCIS_COMMITID=2726eb8a52291a0289609b87c83674a3e8275720
OCIS_BRANCH=master
7 changes: 7 additions & 0 deletions changelog/unreleased/enhancement-additional-languages
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Additional languages

We've added some items to the list of available languages because of good translation coverage in transifex.

https://github.com/owncloud/web/issues/10007
https://github.com/owncloud/web/pull/10008
https://github.com/owncloud/ocis/pull/7754
2 changes: 1 addition & 1 deletion packages/web-runtime/l10n/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ OUTPUT_DIR = .
TEMPLATE_FILE = ./template.pot

# Available locales for the app.
LOCALES = ar bg de cs es fr gl he it pl ru sk sq tr
LOCALES = bg cs de es fr it nl ko sq sv tr

# Name of the generated .po files for each available locale.
LOCALE_FILES ?= $(foreach app,$(APPS),$(patsubst %,$(app)/l10n/locale/%/LC_MESSAGES/app.po,$(LOCALES))) $(patsubst %,./locale/%/LC_MESSAGES/app.po,$(LOCALES))
Expand Down
17 changes: 11 additions & 6 deletions packages/web-runtime/src/defaults/languages.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
export const supportedLanguages = {
cs: 'Czech',
de: 'Deutsch',
bg: 'български - Bulgarian',
cs: 'Čeština - Czech',
de: 'Deutsch - German',
en: 'English',
es: 'Español',
fr: 'Français',
gl: 'Galego',
it: 'Italiano'
es: 'Español - Spanish',
fr: 'Français - French',
it: 'Italiano - Italian',
nl: 'Nederlands - Dutch',
ko: '한국어 - Korean',
sq: 'Shqipja - Albanian',
sv: 'Svenska - Swedish',
tr: 'Türkçe - Turkish'
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`account page account information displays basic user information 1`] =
<div class="account-page-info-language oc-mb oc-width-1-2@s">
<dt class="oc-text-normal oc-text-muted">Language</dt>
<dd>
<oc-select-stub clearable="false" disabled="false" filter="[Function]" fixmessageline="false" getoptionlabel="[Function]" id="oc-select-11" loading="false" multiple="false" optionlabel="label" options="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" placeholder="Please choose..." readonly="false" searchable="true"></oc-select-stub>
<oc-select-stub clearable="false" disabled="false" filter="[Function]" fixmessageline="false" getoptionlabel="[Function]" id="oc-select-11" loading="false" multiple="false" optionlabel="label" options="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]" placeholder="Please choose..." readonly="false" searchable="true"></oc-select-stub>
</dd>
</div>
<div class="account-page-logout-all-devices oc-mb oc-width-1-2@s">
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/cucumber/features/smoke/languageChange.feature
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Feature: language settings

And "Alice" logs in
And "Alice" opens the user menu
And "Alice" changes the language to "Deutsch"
And "Alice" changes the language to "Deutsch - German"
When "Alice" logs out
And "Alice" logs in
Then "Alice" should see the following notifications
| message |
| Brian Murphy hat check_message mit Ihnen geteilt |
And "Alice" logs out


0 comments on commit af0285b

Please sign in to comment.