Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Desktop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Desktop
Commits
425eeb75
Commit
425eeb75
authored
3 years ago
by
Mikolai Gütschow
Committed by
Nico
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
internationalize TextField and SelectionContainer context menu actions
parent
69222c48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!157
internationalize TextField and SelectionContainer context menu actions
Pipeline
#9731
passed
3 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/kotlin/org/briarproject/briar/desktop/ui/BriarUi.kt
+12
-1
12 additions, 1 deletion
src/main/kotlin/org/briarproject/briar/desktop/ui/BriarUi.kt
src/main/resources/strings/BriarDesktop.properties
+6
-0
6 additions, 0 deletions
src/main/resources/strings/BriarDesktop.properties
with
18 additions
and
1 deletion
src/main/kotlin/org/briarproject/briar/desktop/ui/BriarUi.kt
+
12
−
1
View file @
425eeb75
...
...
@@ -27,7 +27,10 @@ import androidx.compose.runtime.mutableStateOf
import
androidx.compose.runtime.remember
import
androidx.compose.runtime.setValue
import
androidx.compose.runtime.staticCompositionLocalOf
import
androidx.compose.ui.ExperimentalComposeUiApi
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.platform.LocalLocalization
import
androidx.compose.ui.platform.PlatformLocalization
import
androidx.compose.ui.res.painterResource
import
androidx.compose.ui.window.FrameWindowScope
import
androidx.compose.ui.window.Window
...
...
@@ -104,9 +107,16 @@ constructor(
eventBus
.
removeListener
(
this
)
}
@OptIn
(
ExperimentalComposeUiApi
::
class
)
@Composable
override
fun
start
(
onClose
:
()
->
Unit
)
{
val
title
=
i18n
(
"main.title"
)
val
platformLocalization
=
object
:
PlatformLocalization
{
override
val
copy
=
i18n
(
"copy"
)
override
val
cut
=
i18n
(
"cut"
)
override
val
paste
=
i18n
(
"paste"
)
override
val
selectAll
=
i18n
(
"select_all"
)
}
eventBus
.
addListener
(
this
)
Window
(
title
=
title
,
...
...
@@ -118,7 +128,8 @@ constructor(
LocalWindowScope
provides
this
,
LocalViewModelProvider
provides
viewModelProvider
,
LocalCoreFeatureFlags
provides
featureFlags
,
LocalDesktopFeatureFlags
provides
desktopFeatureFlags
LocalDesktopFeatureFlags
provides
desktopFeatureFlags
,
LocalLocalization
provides
platformLocalization
,
)
{
var
showAbout
by
remember
{
mutableStateOf
(
false
)
}
val
settingsViewModel
:
SettingsViewModel
=
viewModel
()
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/strings/BriarDesktop.properties
+
6
−
0
View file @
425eeb75
...
...
@@ -143,6 +143,12 @@ error=Error
warning
=
Warning
unsupported_feature
=
Unfortunately, this feature is not yet supported by Briar Desktop.
# Compose text edit actions
copy
=
Copy
cut
=
Cut
paste
=
Paste
select_all
=
Select all
# Startup screen
startup.title.registration
=
Welcome to Briar
startup.title.login
=
Welcome back
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment