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
a0e6ca1c
Commit
a0e6ca1c
authored
3 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
Add hacking guide
parent
dcf94146
No related branches found
No related tags found
1 merge request
!62
Add hacking guide
Pipeline
#8457
passed
3 years ago
Stage: test
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
HACKING.md
+26
-0
26 additions, 0 deletions
HACKING.md
README.md
+5
-0
5 additions, 0 deletions
README.md
TRANSLATION.md
+3
-0
3 additions, 0 deletions
TRANSLATION.md
with
34 additions
and
0 deletions
HACKING.md
0 → 100644
+
26
−
0
View file @
a0e6ca1c
# Hacking guide
## Testing different locales
To test the app with a different locale, add this e.g. in
`Main.kt`
:
```
Locale.setDefault(Locale("ar"))
```
and replace
`ar`
with a different language you would like to test, such as
Arabic in this example.
It is also possible to run from the command line using Gradle with a
different language setting:
```
GRADLE_OPTS="-Duser.language=fr -Duser.country=FR" ./gradlew run
```
## Threading
Some rules about threading in Briar Desktop:
*
Always use local variables instead of the composable State objects inside
another thread:
[
Source
](
https://code.briarproject.org/briar/briar-desktop/-/merge_requests/55#note_57632
)
This diff is collapsed.
Click to expand it.
README.md
+
5
−
0
View file @
a0e6ca1c
...
...
@@ -89,6 +89,11 @@ If you want to use the JDKs downloaded by Intellij IDEA, you can for example spe
See
[
TRANSLATION.md
](
./TRANSLATION.md
)
for more information.
## Hacking
See
[
HACKING.md
](
./HACKING.md
)
for useful information when trying to work
with the source code.
## Maintenance
From time to time, translations and Flatpak's dependencies should be
...
...
This diff is collapsed.
Click to expand it.
TRANSLATION.md
+
3
−
0
View file @
a0e6ca1c
...
...
@@ -32,3 +32,6 @@ flatpak-builder:
```
--env=LC_ALL=de_DE.utf8
```
There's also a section in
[
HACKING.md
](
./HACKING.md#testing-different-locales
)
dedicated to testing of different locales in order to try out translations.
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