You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple strings containing placeholders for integers (%d and %i) cannot be imported correctly. Additionally, the export is incorrect, as the % character is doubled.
It is possible to disable substitution for universal ICU placeholders during import and to turn off universal ICU placeholders in the project settings to ensure correct export behavior.
Reproduce
Import this file into a new project on tolgee.io, leaving the default settings on import.
This means that the parameters are imported as they are. (With %) sign. While exporting with Tolgee Universal ICU placeholders, the % has to be escaped (to %%).
@Anty0 Do you have an idea, how to ensure that we import and export the same data for apple even in these cases? We cannot simply convert %d and %i to ICU {0, number}, because then we would loose the information about the source type.
Maybe we can keep the apple type for each imported parameter stored in custom data.
%d is used in Swift because it is shorter - but you can use %lld instead in most cases. So replacing %d with %lld in all text is the best solution? It is just a bit longer.
So replacing %d with %lld in all text is the best solution? It is just a bit longer.
Yes, I would recommend this. Even if we stored the information about source Apple placeholder, it might cause other issues like problems with updates to the placeholders and inconsistencies.
So sticking to one specific placeholder is the best solution.
Apple strings containing placeholders for integers (%d and %i) cannot be imported correctly. Additionally, the export is incorrect, as the % character is doubled.
It is possible to disable substitution for universal ICU placeholders during import and to turn off universal ICU placeholders in the project settings to ensure correct export behavior.
Reproduce
It can't be used for doubled %.
Expected export
Versions and environment
Additional context
Other placeholder as %e, %@, %f works properly.
The text was updated successfully, but these errors were encountered: