summaryrefslogtreecommitdiffhomepage
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2021-07-06Fix issue with app never requesting VPN permissionEmīls1-0/+5
2021-07-06Add android studio files to .gitignore.Emīls6-180/+0
2021-07-02Update Android translationsOskar Nyberg38-360/+417
2021-06-18Update account history RPCsDavid Lönnhager8-35/+29
2021-05-28Test TV-only apps in `ApplicationsProviderTest`Janito Vaqueiro Ferreira Filho1-9/+45
2021-05-28Show TV-only apps in the Split Tunneling screenJanito Vaqueiro Ferreira Filho1-1/+2
These apps don't hvae a normal launch intent. They have a leanback launch intent instead, and this changes the filtering code to show all apps that has either a normal launch intent or a leanback launch intent.
2021-05-28Remove obsolete `parse_line` helper functionJanito Vaqueiro Ferreira Filho1-11/+0
Replaced by the new `match_str!` macro implementation.
2021-05-28Fix translationsJanito Vaqueiro Ferreira Filho1-10/+10
Use updated tool to include the whole multi-line plural entries for Japanese.
2021-05-28Fix handling of multi-line messagesJanito Vaqueiro Ferreira Filho1-15/+162
A message string can be split among multiple lines, and this was not properly handled. Now it is handled by separate states that join all the lines it finds related to the message.
2021-05-28Test `MsgString` concatenationJanito Vaqueiro Ferreira Filho1-0/+36
Test by moving the operands and by borrowing them. Also test appending to a `MsgString`.
2021-05-28Implement `Add` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+21
Allow joining two `MsgString`s, either by moving them or by borrowing them.
2021-05-28Implement `AddAssign` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+16
Allowing appending to a `MsgString`.
2021-05-28Refactor parser into a clearer state machineJanito Vaqueiro Ferreira Filho1-73/+322
Make it more robust, maintainable and readable.
2021-05-28Return errors from parser methodsJanito Vaqueiro Ferreira Filho2-22/+50
Avoid panicking inside of `Parser`.
2021-05-28Derive `Eq` and `PartialEq` for `MsgString`Janito Vaqueiro Ferreira Filho1-1/+1
This is to allow `Eq` to be derived for the future `gettext::parser::Error` type.
2021-05-28Move `Parser` into a separate moduleJanito Vaqueiro Ferreira Filho3-109/+145
Prepare for refactoring the parsing logic to improve readability and maintainability.
2021-05-28Add `Messages::add_plural` helper methodJanito Vaqueiro Ferreira Filho1-0/+10
Adds plural entries.
2021-05-28Add `Messages::add` helper methodJanito Vaqueiro Ferreira Filho1-0/+10
Adds non-plural message entries.
2021-05-28Add `Messages::starting_with` constructorJanito Vaqueiro Ferreira Filho1-0/+15
Helper constructor to create the instance with an initial entry.
2021-05-28Implement `FromStr` for `PluralForm`Janito Vaqueiro Ferreira Filho1-0/+19
Makes it simpler to obtain an error when attempting to create an instance from a formula string.
2021-05-28Add `Messages::with_plural_formula` constructorJanito Vaqueiro Ferreira Filho1-0/+8
Helper method to parse a specified plural formula in order to create a new empty `Messages` list with the plural form configured.
2021-05-28Return result from `gettext::Messages::from_file`Janito Vaqueiro Ferreira Filho3-10/+22
Instead of panicking on error.
2021-05-28Move `Messages` and related types to new moduleJanito Vaqueiro Ferreira Filho2-162/+173
2021-05-28Rename `Translations` into `Messages`Janito Vaqueiro Ferreira Filho2-6/+6
Because it's also used for the messages template file.
2021-05-28Refactor `match_str` to have extra featuresJanito Vaqueiro Ferreira Filho2-14/+209
It now allows matching prefixes and suffixes.
2021-05-28Move `match_str!` macro to a separate moduleJanito Vaqueiro Ferreira Filho2-17/+18
2021-05-27Create a Docker image for building the Android appJanito Vaqueiro Ferreira Filho5-0/+413
2021-05-21Impl. more escape sequences in gettext messagesJanito Vaqueiro Ferreira Filho1-4/+22
2021-05-21Fix normalize single-quotes testJanito Vaqueiro Ferreira Filho1-4/+6
2021-05-21Unescape single quotes in gettext messagesJanito Vaqueiro Ferreira Filho1-0/+3
2021-05-19Test `StringValue` deserializationJanito Vaqueiro Ferreira Filho1-0/+22
2021-05-19Manually impl. `Deserialize` to collapse newlinesJanito Vaqueiro Ferreira Filho1-2/+11
2021-05-19Test deserialization of multi-line stringsJanito Vaqueiro Ferreira Filho1-0/+39
2021-05-19Test deserialization of `android::StringResources`Janito Vaqueiro Ferreira Filho1-2/+35
2021-05-19Test newline collapsing for `android::StringValue`Janito Vaqueiro Ferreira Filho1-0/+14
2021-05-19Test creating an already escaped `MsgString`Janito Vaqueiro Ferreira Filho1-0/+9
2021-05-19Test `MsgString` escaping of double quotesJanito Vaqueiro Ferreira Filho1-0/+9
2021-05-19Test creating an empty `MsgString`Janito Vaqueiro Ferreira Filho1-0/+12
2021-05-19Test parameter indices handling in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+27
2021-05-19Test XML escaping in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+15
2021-05-19Test Android-specific escaping in `StringValue`Janito Vaqueiro Ferreira Filho1-0/+22
2021-05-19Test normalization of gettext `MsgString`Janito Vaqueiro Ferreira Filho1-0/+19
2021-05-19Test normalization of `StringValue`Janito Vaqueiro Ferreira Filho1-0/+24
2021-05-19Only add parameter indices if they are missingJanito Vaqueiro Ferreira Filho1-2/+33
This change also makes the code handle strings where some parameters have indices and some don't. The ones that don't are assigned indices sequentially starting from the last specified index plus one, or one if there aren't any.
2021-05-19Move collapsing line breaks to constructorJanito Vaqueiro Ferreira Filho2-5/+13
This is because the removal of line breaks is not part of the normalization but part of initial conditioning of the input.
2021-05-19Refactor to create a helper methodJanito Vaqueiro Ferreira Filho1-5/+17
Make that part of the code a bit clearer by moving it into a new method that has a clear name.
2021-05-19Rename `android::StringValue` constructorJanito Vaqueiro Ferreira Filho4-5/+8
Make it consistent with `gettext::MsgString` and make it clearer that escaping will be performed.
2021-05-19Remove previous gettext string normalizationJanito Vaqueiro Ferreira Filho2-32/+10
2021-05-19Improve construction semantics for `MsgString`Janito Vaqueiro Ferreira Filho3-28/+34
2021-05-19Implement `Normalize` for `gettext::MsgString`Janito Vaqueiro Ferreira Filho2-2/+25