Skip to content

Commit cac0586

Browse files
committed
Merge branch 'release/0.4.9' into main
2 parents 08d33c4 + fd8e9e2 commit cac0586

File tree

106 files changed

+468
-122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+468
-122
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Changes in Element X v0.4.9 (2024-04-12)
2+
========================================
3+
4+
- Synchronize Localazy Strings.
5+
16
Changes in Element X v0.4.8 (2024-04-10)
27
========================================
38

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* [Strings](#strings)
1010
* [I want to add new strings to the project](#i-want-to-add-new-strings-to-the-project)
1111
* [I want to help translating Element](#i-want-to-help-translating-element)
12+
* [Element X Android Gallery](#element-x-android-gallery)
1213
* [I want to submit a PR to fix an issue](#i-want-to-submit-a-pr-to-fix-an-issue)
1314
* [Kotlin](#kotlin)
1415
* [Changelog](#changelog)
@@ -69,6 +70,14 @@ To help translating, please go to [https://localazy.com/p/element](https://local
6970

7071
More information can be found [in this README.md](./tools/localazy/README.md).
7172

73+
Once a language is sufficiently translated, it will be added to the app. The core team will decide when a language is sufficiently translated.
74+
75+
### Element X Android Gallery
76+
77+
Once added to Localazy, translations can be checked screen per screen using our tool Element X Android Gallery, available at https://element-hq.github.io/element-x-android/.
78+
79+
Localazy syncs occur every Monday and the screenshots on this page are generated every Tuesday, so you'll have to wait to see your change appearing on Element X Android Gallery.
80+
7281
## I want to submit a PR to fix an issue
7382

7483
Please have a look in the [dedicated documentation](./docs/pull_request.md) about pull request.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Learn more about why we are building Element X in our blog post: [https://elemen
1919
<!--- TOC -->
2020

2121
* [Screenshots](#screenshots)
22+
* [Translations](#translations)
2223
* [Rust SDK](#rust-sdk)
2324
* [Status](#status)
2425
* [Contributing](#contributing)
@@ -50,6 +51,16 @@ adb shell am broadcast -a com.android.systemui.demo -e command exit
5051
|-|-|-|-|
5152
|<img src=./docs/images-lfs/screen_1_dark.png width=280 />|<img src=./docs/images-lfs/screen_2_dark.png width=280 />|<img src=./docs/images-lfs/screen_3_dark.png width=280 />|<img src=./docs/images-lfs/screen_4_dark.png width=280 />|
5253

54+
## Translations
55+
56+
Element X Android supports many languages. You can help us to translate the app in your language by joining our [Localazy project](https://localazy.com/p/element). You can also help us to improve the existing translations.
57+
58+
Note that for now, we keep control on the French and German translations.
59+
60+
Translations can be checked screen per screen using our tool Element X Android Gallery, available at https://element-hq.github.io/element-x-android/. Note that this page is updated every Tuesday.
61+
62+
More instructions about translating the application can be found at [CONTRIBUTING.md](CONTRIBUTING.md#strings).
63+
5364
## Rust SDK
5465

5566
Element X leverages the [Matrix Rust SDK](https://github.com/matrix-org/matrix-rust-sdk) through an FFI layer that the final client can directly import and use.

app/src/main/kotlin/io/element/android/x/di/AppModule.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import androidx.preference.PreferenceManager
2323
import com.squareup.anvil.annotations.ContributesTo
2424
import dagger.Module
2525
import dagger.Provides
26+
import io.element.android.appconfig.ApplicationConfig
2627
import io.element.android.features.messages.impl.timeline.components.customreaction.DefaultEmojibaseProvider
2728
import io.element.android.features.messages.impl.timeline.components.customreaction.EmojibaseProvider
2829
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
@@ -79,7 +80,9 @@ object AppModule {
7980
fun providesBuildMeta(@ApplicationContext context: Context, buildType: BuildType) = BuildMeta(
8081
isDebuggable = BuildConfig.DEBUG,
8182
buildType = buildType,
82-
applicationName = context.getString(R.string.app_name),
83+
applicationName = ApplicationConfig.APPLICATION_NAME.takeIf { it.isNotEmpty() } ?: context.getString(R.string.app_name),
84+
productionApplicationName = ApplicationConfig.PRODUCTION_APPLICATION_NAME,
85+
desktopApplicationName = ApplicationConfig.DESKTOP_APPLICATION_NAME,
8386
applicationId = BuildConfig.APPLICATION_ID,
8487
// TODO EAx Config.LOW_PRIVACY_LOG_ENABLE,
8588
lowPrivacyLoggingEnabled = false,
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (c) 2023 New Vector Ltd
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package io.element.android.appconfig
18+
19+
object ApplicationConfig {
20+
/**
21+
* Application name used in the UI for string. If empty, the value is taken from the resources `R.string.app_name`.
22+
* Note that this value is not used for the launcher icon.
23+
* For Element, the value is empty, and so read from `R.string.app_name`, which depends on the build variant:
24+
* - "Element X" for release builds;
25+
* - "Element X dbg" for debug builds;
26+
* - "Element X nightly" for nightly builds.
27+
*/
28+
const val APPLICATION_NAME: String = ""
29+
30+
/**
31+
* Used in the strings to reference the Element client.
32+
* Cannot be empty.
33+
* For Element, the value is "Element".
34+
*/
35+
const val PRODUCTION_APPLICATION_NAME: String = "Element"
36+
37+
/**
38+
* Used in the strings to reference the Element Desktop client, for instance Element Web.
39+
* Cannot be empty.
40+
* For Element, the value is "Element". We use the same name for desktop and mobile for now.
41+
*/
42+
const val DESKTOP_APPLICATION_NAME: String = "Element"
43+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Main changes in this version: Enable room moderation feature.
2+
Full changelog: https://github.com/element-hq/element-x-android/releases

features/createroom/impl/src/main/res/values-be/translations.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
33
<string name="screen_create_room_action_create_room">"Новы пакой"</string>
4-
<string name="screen_create_room_action_invite_people">"Запрасіце сяброў у Element"</string>
54
<string name="screen_create_room_add_people_title">"Запрасіць карыстальникаў"</string>
65
<string name="screen_create_room_error_creating_room">"Пры стварэнні пакоя адбылася памылка"</string>
76
<string name="screen_create_room_private_option_description">"Паведамленні ў гэтым пакоі зашыфраваны. Гэта шыфраванне нельга адключыць."</string>

features/createroom/impl/src/main/res/values-bg/translations.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
33
<string name="screen_create_room_action_create_room">"Нова стая"</string>
4-
<string name="screen_create_room_action_invite_people">"Поканване на хора в Element"</string>
54
<string name="screen_create_room_add_people_title">"Поканване на хора"</string>
65
<string name="screen_create_room_error_creating_room">"Възникна грешка при създаването на стаята"</string>
76
<string name="screen_create_room_private_option_description">"Съобщенията в тази стая са шифровани. Шифроването не може да бъде изключено впоследствие."</string>

features/createroom/impl/src/main/res/values-cs/translations.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
33
<string name="screen_create_room_action_create_room">"Nová místnost"</string>
4-
<string name="screen_create_room_action_invite_people">"Pozvat přátele do Elementu"</string>
54
<string name="screen_create_room_add_people_title">"Pozvat přátele"</string>
65
<string name="screen_create_room_error_creating_room">"Při vytváření místnosti došlo k chybě"</string>
76
<string name="screen_create_room_private_option_description">"Zprávy v této místnosti jsou šifrované. Šifrování nelze později vypnout."</string>

features/createroom/impl/src/main/res/values-de/translations.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
33
<string name="screen_create_room_action_create_room">"Neuer Raum"</string>
4-
<string name="screen_create_room_action_invite_people">"Zu Element einladen"</string>
54
<string name="screen_create_room_add_people_title">"Personen einladen"</string>
65
<string name="screen_create_room_error_creating_room">"Beim Erstellen des Raums ist ein Fehler aufgetreten"</string>
76
<string name="screen_create_room_private_option_description">"Die Nachrichten in diesem Raum sind verschlüsselt. Die Verschlüsselung kann nicht nachträglich deaktiviert werden."</string>

0 commit comments

Comments
 (0)