Create dedicated modules for Strings and apply the plugin com.likethesalad.stem

Remove translations
This commit is contained in:
Benoit Marty 2023-01-05 17:00:58 +01:00 committed by Benoit Marty
parent da59e812a7
commit 8c93aedbc1
33 changed files with 384 additions and 182 deletions

View file

@ -0,0 +1,32 @@
/*
* Copyright (c) 2023 New Vector Ltd
*
* 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.
*/
// TODO: Remove once https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("io.element.android-library")
alias(libs.plugins.stemlibrary)
}
android {
namespace = "io.element.android.x.ui.strings"
}
// forcing the stem string template generator to be cacheable, without this the templates
// are regenerated causing the app module to recompile its sources
tasks.withType(com.likethesalad.android.templates.common.tasks.BaseTask::class.java) {
outputs.cacheIf { true }
}

View file

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />

View file

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- media settings -->
<string-array name="compression_levels">
<item>@string/compression_opt_list_choose</item>
<item>@string/compression_opt_list_original</item>
<item>@string/compression_opt_list_large</item>
<item>@string/compression_opt_list_medium</item>
<item>@string/compression_opt_list_small</item>
</string-array>
<string-array name="compression_level_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
</string-array>
<string-array name="media_sources">
<item>@string/media_source_choose</item>
<item>@string/option_send_files</item>
<item>@string/option_send_voice</item>
<item>@string/option_send_sticker</item>
<item>@string/option_take_photo</item>
<item>@string/option_take_video</item>
</string-array>
<string-array name="media_source_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
</string-array>
<!-- Room settings notification -->
<!-- Theme -->
<string-array name="theme_entries">
<item>@string/system_theme</item>
<item>@string/light_theme</item>
<item>@string/dark_theme</item>
<item>@string/black_theme</item>
</string-array>
<string-array name="theme_values">
<item>system</item>
<item>light</item>
<item>dark</item>
<item>black</item>
</string-array>
<!-- media saving choice list -->
<string-array name="media_saving_choice">
<item>@string/media_saving_period_3_days</item>
<item>@string/media_saving_period_1_week</item>
<item>@string/media_saving_period_1_month</item>
<item>@string/media_saving_period_forever</item>
</string-array>
</resources>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="ellipsis" translatable="false"></string>
<string name="no_value_placeholder" translatable="false"></string>
<!-- Temporary string -->
<string name="not_implemented" translatable="false">Not implemented yet in ${app_name}</string>
<!-- onboarding english only word play -->
<string name="cut_the_slack_from_teams" translatable="false">Cut the slack from teams.</string>
<!-- WIP -->
<string name="location_map_view_copyright" translatable="false">© MapTiler © OpenStreetMap contributors</string>
</resources>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- This file contains string that I do not want to be translated by Weblate translators. -->
<!-- use to retrieve the supported languages list -->
<!-- should the same value as the file name -->
<string name="resources_language">en</string>
<string name="resources_country_code">US</string>
<!-- Value MUST have 4 letters and MUST be in this list: https://www.unicode.org/iso15924/iso15924-codes.html. Example: "Arab", "Cyrl", "Latn", etc. -->
<string name="resources_script">Latn</string>
<string name="lockscreen_num_0">0</string>
<string name="lockscreen_num_1">1</string>
<string name="lockscreen_num_2">2</string>
<string name="lockscreen_num_3">3</string>
<string name="lockscreen_num_4">4</string>
<string name="lockscreen_num_5">5</string>
<string name="lockscreen_num_6">6</string>
<string name="lockscreen_num_7">7</string>
<string name="lockscreen_num_8">8</string>
<string name="lockscreen_num_9">9</string>
</resources>