Comments (6)
Out of curiosity I looked in the zh_*.po files in a number of projects and everywhere I saw only the formula
nplurals=1; plural=0;
. No one used the formula with singular and plural. This is a little surprising.
I believe it's the default setting for zh in Poedit. Chinese and Taiwanese do have some rare plural nouns. Mostly, we use number and different classifier for plural nouns. In practical, the measure words might be omitted. Using nplurals=2
in .po files is more precise, but not necessarily required.
from darktable.
Looks like this is the bad entry:
msgid "writing sidecar file"
msgid_plural "writing %zu sidecar files"
msgstr[0] "寫入附屬檔案"
msgstr[1] "寫入 %zu 個附屬檔案"
My guess is that it should have been
msgid "writing sidecar file"
msgid_plural "writing %zu sidecar files"
msgstr[0] "寫入 %zu 個附屬檔案"
from darktable.
I got it. It is the Plural-Forms
setting.
Chinese or Taiwanese usually don't have plural nouns. The .po has a Plural-Forms: nplurals=1; plural=0;\n
setting. But this one, I saw it has different content in msgid_plural
and msgid
. That's why I use msgstr[0]
and msgstr[1]
.
It's my fault, will use Plural-Forms: nplurals=2; plural=(n != 1);\n
and add all other msgstr[1]
strings.
from darktable.
But this one, I saw it has different content in
msgid_plural
andmsgid
Yes, in the original (in English), they should be different, because this corresponds to the rules of the English language. But this does not matter for translation, if the target language does not have a plural form, then the translation will be the same.
The main question is the rules of the language into which we translate. If you write that Chinese or Taiwanese don't have plural nouns, then you need to use the formula Plural-Forms: nplurals=1; plural=0
from darktable.
The main question is the rules of the language into which we translate. If you write that Chinese or Taiwanese don't have plural nouns, then you need to use the formula
Plural-Forms: nplurals=1; plural=0
Yes, that's the way in former zh-TW.po files.
But sometimes we will use different article in front of nouns to express singular and plural forms. It depends on the sentence. I think use plural independent setting will make it more solid. Even in most cases the msgstr[1]
will be the same with msgstr[0]
.
from darktable.
But sometimes we will use different article in front of nouns to express singular and plural forms. It depends on the sentence.
Interesting! Got it. I even found good explanation: https://medium.com/@chinesewithnora/the-singular-world-of-plurals-in-chinese-c6307a5cbc25
I think use plural independent setting will make it more solid.
Out of curiosity I looked in the zh_*.po files in a number of projects and everywhere I saw only the formula nplurals=1; plural=0;
. No one used the formula with singular and plural. This is a little surprising.
from darktable.
Related Issues (20)
- null HOT 2
- Metadata of picture removed and image rotate in lighttable since last update
- Not all printers listed in print module HOT 15
- Metadata Editor module in Darkroom (next to the Tagging module) HOT 1
- Darktable 4.8.1 Not Working HOT 3
- Darktable not wokring after installtion HOT 13
- DT 4.8.1 seg fault on loading a folder of images HOT 10
- [FR] ISO 12464 border config in GUI settings HOT 3
- Crashing with imports MacOS HOT 8
- How to manage the iso of a sensor that has noise differences between the electronic shutter and the mechanical shutter
- Crash when "scale pixels" module is moved on top of pixelpipe and "rotate and perspective" is used HOT 5
- Some thoughts on improving the Tone Equalizer UI HOT 4
- darktable crashes with X windows error while exporting HOT 1
- Error opening dataabase message HOT 2
- Lua: Inter Script Communication
- Lua: Cooperative Multitasking Using Event Driven Messaging
- rotation and perspective" module not compatible with "retouching". HOT 4
- Adjustments on image in print dialog are only applied after switching to darkroom and back
- Grouping of images can add non-selected photos
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 darktable.