Comments (2)
It seems to me that the simplest fix could be to change the current form of line 97 of gettext.odin
from:
if len(keys) != len(vals) || max(len(keys), len(vals)) > MAX_PLURALS {
to
if (len(keys) != 1 && len(keys) != 2) || len(vals) > MAX_PLURALS {
as the number of untranslated string can only be 1 or 2 and the number of translated string can be any as long as it does not exceed the accepted maximum.
from odin.
I'll be looking at this (and its sibling Issue) tomorrow. Thanks for the repro case and the suggested fix.
from odin.
Related Issues (20)
- `%w` in `fmt` is undocumented HOT 2
- Casting int to array backed bit_fields can crash the compiler HOT 2
- Error handling in read_dir on Windows
- Passing struct containing 128-bit integer panics HOT 1
- Compiler assertion for conversion from i32 to union{i32} HOT 1
- `core:odin/parser` package doesn't support putting labels on `#reverse for in` loops HOT 1
- Identity quaternion shows wrong value in debugger
- `linalg.angle_axis_from_quaternion` returns `[NaN, NaN, NaN]` axis for identity quaternion HOT 1
- `#force_*inline` after label segfaults HOT 1
- Poly code crashes compiler. HOT 1
- [Feature Request] add sqlite3 to vendor collection HOT 2
- Taking address of loop variable silently crashes compiler
- Odin diagnostics get messed up by non-ASCII codepoints HOT 4
- Unable to assign to `#soa` array using struct literal with named fields
- Incorrect hexadecimal literal is an invalid token HOT 1
- Compiler loops infinitely if error line is truncated HOT 1
- Infinite loop when compiling procedure with weird parapoly signature HOT 2
- Macos Intel crashes on calling `linalg.mul`
- Redeclaration of 'iso8601_to_time_utc' in this scope HOT 4
- some_var := -SOME_CONSTANT_VECTOR doesn't work
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 odin.