Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localised string for VoiceOver accessibility support #1441

Merged
merged 9 commits into from
Oct 17, 2024
74 changes: 74 additions & 0 deletions compose/ui/ui/src/uikitMain/parse_crowdin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/bash

#
ASalavei marked this conversation as resolved.
Show resolved Hide resolved
# Copyright 2024 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Directory to go through
ASalavei marked this conversation as resolved.
Show resolved Hide resolved
crowding_res_path=$1
target_dir='res'

# Check if directory path is not empty
if [ -z "$crowding_res_path" ]; then
echo "Error: No source directory path provided."
echo "Usage: $0 <directory path>"
exit 1
fi

alias_name() {
local name=$1
case "$name" in
"pt-rPT") echo "pt" ;;
"es-rES") echo "es" ;;
"hy-rAM") echo "hy" ;;
"id") echo "in" ;;
"he") echo "iw" ;;
"sv-rSE") echo "sv" ;;
"gu-rIN") echo "gu" ;;
"ml-rIN") echo "ml" ;;
"ne-rNP") echo "ne" ;;
"pa-rIN") echo "pa" ;;
"si-rLK") echo "si" ;;
"ur-rPK") echo "ur" ;;
*) echo "" ;;
esac
}

rm -rf $target_dir
mkdir -p $target_dir

mkdir -p "$target_dir/values"
cp "$crowding_res_path/en/general/strings.xml" "$target_dir/values/strings.xml"

for locale_dir in "$crowding_res_path"/*; do
# Check if it is a directory
echo locale $locale_dir

if [ -d "$locale_dir" ]; then
locale=$(basename "$locale_dir") # Get the locale name from the directory name
locale="${locale/-/-r}"

if [ -f "$locale_dir/general/strings.xml" ]; then
localAlias=$(alias_name $locale)
if [ "$localAlias" != "" ]; then
mkdir -p "$target_dir/values-$localAlias"
cp "$locale_dir/general/strings.xml" "$target_dir/values-$localAlias/strings.xml"
else
mkdir -p "$target_dir/values-$locale"
cp "$locale_dir/general/strings.xml" "$target_dir/values-$locale/strings.xml"
fi
fi
fi
done
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-ach/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Pot karatac ma lubo</string>
<string name="previous_page">Pot karatac mukato</string>
<string name="first_page">Pot karatac me acel</string>
<string name="last_page">Pot karatac me agiki</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-af/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Volgende bladsy</string>
<string name="previous_page">Vorige bladsy</string>
<string name="first_page">Eerste bladsy</string>
<string name="last_page">Laaste bladsy</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-am/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">ቀጣይ ገጽ</string>
<string name="previous_page">የቀድሞ ገጽ</string>
<string name="first_page">የመጀመሪያ ገጽ</string>
<string name="last_page">የመጨረሻው ገጽ</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">الصفحة التالية</string>
<string name="previous_page">الصفحة السابقة</string>
<string name="first_page">الصفحة الأولى</string>
<string name="last_page">الصفحة الأخيرة</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-as/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">পৰৱৰ্তী পৃষ্ঠা</string>
<string name="previous_page">পূৰ্বৰ পৃষ্ঠা</string>
<string name="first_page">প্ৰথম পৃষ্ঠা</string>
<string name="last_page">শেষ পৃষ্ঠা</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-az/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Növbəti səhifə</string>
<string name="previous_page">Əvvəlki səhifə</string>
<string name="first_page">İlk səhifə</string>
<string name="last_page">Son səhifə</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-be/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Наступная старонка</string>
<string name="previous_page">Папярэдняя старонка</string>
<string name="first_page">Першая старонка</string>
<string name="last_page">Апошняя старонка</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-bg/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Следваща страница</string>
<string name="previous_page">Предишна страница</string>
<string name="first_page">Първа страница</string>
<string name="last_page">Последна страница</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-bn/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">পরবর্তী পৃষ্ঠা</string>
<string name="previous_page">আগের পৃষ্ঠা</string>
<string name="first_page">প্রথম পৃষ্ঠা</string>
<string name="last_page">শেষ পৃষ্ঠা</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-bs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Sljedeća stranica</string>
<string name="previous_page">Prethodna stranica</string>
<string name="first_page">Prva stranica</string>
<string name="last_page">Zadnja stranica</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-ca/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Pàgina següent</string>
<string name="previous_page">Pàgina anterior</string>
<string name="first_page">Primera pàgina</string>
<string name="last_page">Última pàgina</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-cs/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Další stránka</string>
<string name="previous_page">Předchozí stránka</string>
<string name="first_page">První stránka</string>
<string name="last_page">Poslední stránka</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-da/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Næste side</string>
<string name="previous_page">Forrige side</string>
<string name="first_page">Første side</string>
<string name="last_page">Sidste side</string>
</resources>
22 changes: 22 additions & 0 deletions compose/ui/ui/src/uikitMain/res/values-de/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="next_page">Nächste Seite</string>
<string name="previous_page">Vorherige Seite</string>
<string name="first_page">Erste Seite</string>
<string name="last_page">Letzte Seite</string>
</resources>
Loading