Skip to content

Commit

Permalink
Merge pull request #3 from mkrueger/mkrueger/localization
Browse files Browse the repository at this point in the history
Implemented localization with fluent.
  • Loading branch information
mkrueger authored Aug 2, 2023
2 parents 16e3191 + 63562f3 commit 962d149
Show file tree
Hide file tree
Showing 8 changed files with 201 additions and 98 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ needle = "0.1.1"
threadpool = "1.0"
sudo = "0.6.0"
gabi = "0.2.6"
i18n-embed = { version = "0.13.4", features = ["fluent-system", "desktop-requester"]}
i18n-embed-fl = "0.6.4"
once_cell = "1.16.0"
rust-embed = "6.4.2"

[target.'cfg(target_os = "windows")'.dependencies]
proc-maps = "0.3.1"
Expand Down
5 changes: 5 additions & 0 deletions i18n.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

fallback_language = "en"

[fluent]
assets_dir = "i18n"
52 changes: 52 additions & 0 deletions i18n/de/game_cheetah.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
process-label = Prozesse:
no-processes-label = <Prozess nicht gesetzt>
filter-processes-hint = Prozesse filtern
default-label = Standard
name-label = Name:
value-label = Wert:
search-description-label = Suchbeschreibung
search-value-label = Suche nach { $valuetype }
found-one-result-label = 1 Vorkommen gefunden
found-results-label = { $results } Vorkommen gefunden
no-results-label = Keine Vorkommen
undo-button = Rückgängig
initial-search-button = Erste Suche
update-button = Aktualisieren
clear-button = Löschen
close-button = Schließen
hide-results-button = Ergebnisse verstecken
show-results-button = Ergebnisse zeigen
generic-error-label = <Fehler>
invalid-input-error = Eingabe ungültig
invalid-number-error = Zahl ungültig
conversion-error = Fehler beim Konvertieren { $valuetype }: { $message }
guess-value-item = Unklar (2-8 Bytes)
short-value-item = Short (2 Bytes)
int-value-item = Int (4 Bytes)
int64-value-item = Int64 (8 Bytes)
float-value-item = Float (4 Bytes)
double-value-item = Double (8 Bytes)
guess-descr = Unklar
short-descr = Short
int-descr = Int
int64-descr = Int64
float-descr = Float
double-descr = Double
address-heading = Addresse
value-heading = Wert
freezed-heading = Eingefroren
pid-heading = Pid
name-heading = Name
memory-heading = Speicher
command-heading = Kommando
update-numbers-progress = Aktualisiere { $current }/{ $total }
search-memory-progress = Suche { $current }/{ $total }
52 changes: 52 additions & 0 deletions i18n/en/game_cheetah.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
process-label = Processes:
no-processes-label = <no process set>
filter-processes-hint = Filter processes
default-label = default
name-label = Name:
value-label = Value:
search-description-label = Search description
search-value-label = Search for { $valuetype } value
found-one-result-label = found one result.
found-results-label = found { $results } results.
no-results-label = No results found.
undo-button = Undo
initial-search-button = Initial search
update-button = Update
clear-button = Clear
close-button = Close
hide-results-button = Hide Results
show-results-button = Show Results
generic-error-label = <error>
invalid-input-error = Invalid input
invalid-number-error = Invalid number
conversion-error = Error converting { $valuetype }: { $message }
guess-value-item = guess value (2-8 bytes)
short-value-item = short (2 bytes)
int-value-item = int (4 bytes)
int64-value-item = int64 (8 bytes)
float-value-item = float (4 bytes)
double-value-item = double (8 bytes)
guess-descr = Guess
short-descr = short
int-descr = int
int64-descr = int64
float-descr = float
double-descr = double
address-heading = Address
value-heading = Value
freezed-heading = Freezed
pid-heading = Pid
name-heading = Name
memory-heading = Memory
command-heading = Command
update-numbers-progress = Update { $current }/{ $total }
search-memory-progress = Search { $current }/{ $total }
Loading

0 comments on commit 962d149

Please sign in to comment.