Comments (10)
0 is the number of items, while 1 is either file (if the number is 1) or files (if the number is not 1). Tajfun indicated this will be an issue in polish because they use some wacked out numbering system with words, but I don't know how this could be fixed as it seems other localisations use a completely different sentence structure.
from me3tweaksmodmanager.
as the interpolation can't do it justice, i suggest removing it in favor of {0} file(s) need(s) to be patched
or need to patch {0} file(s)
, and the equivalent in localizations.
from me3tweaksmodmanager.
Writing alternate ending in brackets isn't really universal either. It'll look like a bit of mess even in English, not speaking about Polish and probably some other "advanced" languages.
I'd vote for Amount of files that need to be patched: {0}
. It's not that nice, but I don't see other solution that wouldn't require language-specific rules.
from me3tweaksmodmanager.
We'd need to see how it looks in things like Polish first since this seems to be localization dependent. I can do some checking but I am not sure if final tokens (in this case, {1}) need to exist, or if it just skips them. I beleive the first tokens have to be since they are simply parsed in that order.
E.g. In english
{0} {1} need to be patched
(which resolves to:
0 files need to be patched
1 file needs to be patched
2 files need to be patched
etc.
)
In another language:
Amount of files to be patched: {0}
In the context of this string I think it looks proper how it does in english, but the string will probably need to be different in other languages instead of a 1:1 translation.
from me3tweaksmodmanager.
Remember you can move all of the tokens around as long as you keep the { }.
from me3tweaksmodmanager.
How would word need
change its form when it's not a variable, but a static string? (looking at your examples. Only file
is variable)
I'm afraid changing word order ain't gonna change anything when translating original sentence to Polish. Maybe Mellin would have an idea on hacking it around, but I don't have any. Switching to Amount of files to be patched: {0}
would be the only solution without ternary.
When we talked about it first, I gave you this wonderful bit of ternary on how would formatting original sentence in Polish look like (and yeah I don't have strength to reformat it :D)
(x == 1) ? "{0} plik musi zostać naprawiony" : ( ( (x >= 2 && x < 5) || (x > 20 && (x % 10 >=2 && x % 10 < 5))) ? "{0} pliki muszą zostać naprawione" : "{0} plików musi zostać naprawionych" ), amountOfFiles.ToString()
from me3tweaksmodmanager.
I agree with Tajfun's suggestion of Amount of files that need to be patched: {0}
or similar formulation.
Files to patch: {0}
.
And yes, as mentioned earlier, even the need(s)
in English is broken.
from me3tweaksmodmanager.
Files to patch: {0} would be an acceptable alternative in english I think. There is one more instance of this type of language in M3, Patched X files.
from me3tweaksmodmanager.
If you're referring to
then this is already very close to the proposed solution. It works in German as is, or
Patched files: {0}
.from me3tweaksmodmanager.
This was resolved to the following:
Number of files requiring patches: {0}
The PatchedXY string is no longer used.
from me3tweaksmodmanager.
Related Issues (20)
- Feature Request: debug names for LE1 in save selector dialog HOT 6
- Feature request: Starter Kit Adding for LE1 Mod Settings Menu
- Bug: ASI Manager Panel is blank, shows no ASIs for game
- Feature: Batch Installer - Check RequiredDLC before install in list, and in order
- Bug: Batch Installer does not run merges if mod installation is canceled
- Feature: Batch Installer - Restore Backup option
- Feature change: Batch Installer should not let system sleep
- Feature change: Prompt for textures at start of the batch install, not at panel start
- Remaining 9.0 todo HOT 13
- Long term: Offline log viewer
- Long term: Dark mode dialog boxes are inaccessible
- Feature Request: Multiple squadmate merge files in one mod
- Feature request: In-app handling of failed target loads
- Investigate implementation of ZStd for compression
- Feature request: Target audit log
- Feature Request: Detect other Legendary Edition games automatically
- Alternate DLC clone issue HOT 2
- Mods not reloading while in Batch Installer -> Mod Update Panel -> return to batch installer
- ME3Tweaks Mod Manager 9.0.1 Build 135 changelog
- DLCOptionKey structs issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from me3tweaksmodmanager.