Overview
Comment: | OFLocale: Allow plural scripting in fallback |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8a0c5ed3454c0bc3a27e6b30dd39bc64 |
User & Date: | js on 2020-04-13 15:48:54 |
Other Links: | manifest | tags |
Context
2020-04-13
| ||
16:11 | PLATFORMS.md: Add Linux/S390x check-in: d9f3337c8c user: js tags: trunk | |
15:48 | OFLocale: Allow plural scripting in fallback check-in: 8a0c5ed345 user: js tags: trunk | |
2020-04-12
| ||
22:28 | utils: Properly translate plurals check-in: 9ee403e4fc user: js tags: trunk | |
Changes
Modified src/OFLocale.h from [6fa1140bc7] to [dfcb090c6e].
︙ | |||
179 180 181 182 183 184 185 | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | - + + - - + - + + - + | * the localized string. * * @note Generally, you want to use @ref OF_LOCALIZED instead, which also takes * care of the `nil` sentinel automatically. * * @param ID The ID for the localized string * @param fallback The fallback to use in case the localized string cannot be |
Modified src/OFLocale.m from [040819af75] to [54ee38ba1e].
︙ | |||
542 543 544 545 546 547 548 | 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 | - + - + | [[OFString stringWithContentsOfFile: languageFile] JSONValue]]; objc_autoreleasePoolPop(pool); } #endif - (OFString *)localizedStringForID: (OFConstantString *)ID |
︙ | |||
588 589 590 591 592 593 594 | 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 | + + + - - + + | UTF8String = [string UTF8String]; UTF8StringLength = [string UTF8StringLength]; break; } if (UTF8String == NULL) { if ([fallback isKindOfClass: [OFArray class]]) fallback = evaluateArray(fallback, variables); |
︙ |
Modified utils/ofarc/LHAArchive.m from [ac9c3a4448] to [8c23d6ffc7].
︙ | |||
117 118 119 120 121 122 123 | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | + - + + + + + + + - + + + + + + | @"%" PRIu32, entry.uncompressedSize]; OFString *CRC16 = [OFString stringWithFormat: @"%04" PRIX16, entry.CRC16]; [of_stdout writeString: @"\t"]; [of_stdout writeLine: OF_LOCALIZED( @"list_compressed_size", [@"[" |
︙ |
Modified utils/ofarc/TarArchive.m from [5bec331bce] to [ce61d629aa].
︙ | |||
106 107 108 109 110 111 112 | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | + + + + - + + + | OFString *UID = [OFString stringWithFormat: @"%u", entry.UID]; OFString *GID = [OFString stringWithFormat: @"%u", entry.GID]; [of_stdout writeString: @"\t"]; [of_stdout writeLine: OF_LOCALIZED(@"list_size", [@"[" @" 'Size: '," @" [" @" {'size == 1': '1 byte'}," |
︙ |
Modified utils/ofarc/ZIPArchive.m from [2678f9aad0] to [f7e021bab7].
︙ | |||
118 119 120 121 122 123 124 | 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | + - + + + + + + + - + + + + + + | stringWithFormat: @"%08" PRIX32, entry.CRC32]; OFString *modificationDate = [entry.modificationDate localDateStringWithFormat: @"%Y-%m-%d %H:%M:%S"]; [of_stdout writeString: @"\t"]; [of_stdout writeLine: OF_LOCALIZED( @"list_compressed_size", [@"[" |
︙ |
Modified utils/ofhttp/OFHTTP.m from [cb6f1d9fe7] to [37d96aee35].
︙ | |||
808 809 810 811 812 813 814 | 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 | + + + - + + + | lengthString = OF_LOCALIZED(@"size_kib", @"%[num] KiB", @"num", lengthString); } else { lengthString = [OFString stringWithFormat: @"%jd", _resumedFrom + _length]; lengthString = OF_LOCALIZED(@"size_bytes", [@"[" @" [" @" {'num == 1': '1 byte'}," |
︙ |
Modified utils/ofhttp/ProgressBar.m from [cdabadff8c] to [813833df71].
︙ | |||
200 201 202 203 204 205 206 | 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 | + + + - + + + | [of_stdout writeString: OF_LOCALIZED(@"progress_kib", @"%[num] KiB", @"num", num)]; } else { OFString *num = [OFString stringWithFormat: @"%jd", _resumedFrom + _received]; [of_stdout writeString: OF_LOCALIZED(@"progress_bytes", [@"[" @" [" @" {'num == 1': '1 byte '}," |
︙ |
Modified utils/ofhttp/lang/de.json from [dae75765a1] to [ef4298a3ca].
︙ | |||
93 94 95 96 97 98 99 | 93 94 95 96 97 98 99 100 101 102 103 104 | - + | "output_already_exists": "%[prog]: Datei %[filename] existiert bereits!", "failed_to_open_output": [ "%[prog]: Kann Datei %[filename] nicht öffnen: %[exception]" ], "eta_days": "%[num] t ", "progress_bytes": [ [ |