Sie können sich
hier anmelden
Dieses Thema hat 17 Antworten und wurde 1.328 mal aufgerufen
Scotty
Offline Administrator
13.11.2012 21:14
Zitat von Bussinchen im Beitrag #13 But how can right Russian plurals ... be associated to the right numerals?Don't mix up plural forms and numerals. Plural forms are calculated internally and you don't need to understand how it works. Russian part looks like this:
Zitat von C formula 'plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2' translated to pascal Mod10:=aNumber mod 10; Mod100:=aNumber mod 100; ... if ((Mod10=1) and (Mod100<>11)) then Result:=0 else if (Mod10>=2) and (Mod10<=4) and ((Mod100<10) or (Mod100>=20)) then Result:=1 else Result:=2;
Download: Sourceforge.net | Help: Wiki | Discussion: Forum | News: Twitter | Fanship: Facebook
Zitat But how can right Russian plurals ... be associated to the right numerals? But maybe she was curious :) It's a bit like Mengenlehre in maths. You write a formula that explains a lot of what-if rules to the computer. For example, you can tell that computer that you want x if the number is 1, 2 or 3; that you want y if the number is 4-10 and that you want z if the number is anything else. So when the computer then runs into a number placeholder (such as %d) and this placeholder happens to be 7 (in my example) it checks the rules and finds that for the number 7, rule y applies and it will pull the translation associated with y. Sorry I was silent, work was insane and then we had TWO deaths in the family, been a bit crazy. The good news is it's much more quiet now :)
******************************* Do, or do not. There is no try.
Announcements
| | - English
| | - Deutsch
English
| | - Bugreports & Suggestions
| | | - Bugreports & Suggestions
| | | - Solved bugs
| | | - From patch to patch
| | - FAQ and support
| | | - Questions about the program
| | | - User's guide for Scrabble3D
| | | - Wiki
| | | - About the code, compilation and debugging
| | - Server
| | | - Server status
| | | - Questions about server and network games
| | - Scrabble3D
| | | - Localization
| | | - Design
| | | - English dictionaries
| | - General
| | | - Forum, Facebook, Twitter
| | | - Café
Deutsch
| | - Für neue Forumsmitglieder und Forumsgäste
| | | - Leitfaden
| | - Fehlermeldungen & Wünsche
| | | - Fehlermeldungen & Wünsche
| | | - Behobene Fehler und erfüllte Wünsche
| | | - Beobachtungen
| | | - Fragen zu den Sprachdateien
| | - FAQ und Support
| | | - Fragen zum Programm
| | | - Fragen bei Problemen
| | | - Tipp des Tages
| | | - Wiki
| | - Server
| | | - Serverstatus
| | | - Fragen zum Server und Netzwerkspiel
| | - Allgemeines
| | | - Forum, Facebook, Twitter
| | | - Informatives
| | | - Scrabble-Partien
| | | - Internationales
| | | - Unterhaltsames, Grüße und Wünsche
| | | - Café
| | - Turniere
| | | - Online-Turniere mit Scrabble3D
| | | - Sonstige Turniere und Scrabble-Treffs
| | - Rätselecke
| | | - Geros Superscrabble-Rätsel
| | | | - Allgemeines
| | | | - 2010
| | | | - 2011
| | | | - Diskussion
| | | | - Lösungen
| | | - Grangraus Geo-Rätsel
| | | | - Classic Geo
| | | | - Super Geo
| | | - Anagramme
| | | - 3.1.4
Geros SuperDic - die ultimative Wortfabr...
| | - Einführung in Geros SuperDic
| | - Fragen zum Scrabble-Wortschatz
| | - Problemlösungen zu einzelnen Buchstaben
| | | - A
| | | - B
| | | - C
| | | - D
| | | - E
| | | - F
| | | - G
| | | - H
| | | - I
| | | - J
| | | - K
| | | - L
| | | - M
| | | - N
| | | - O
| | | - P
| | | - Q
| | | - R
| | | - S
| | | - T
| | | - U
| | | - V
| | | - W
| | | - X
| | | - Y
| | | - Z
| | | - Ä
| | | - Ö
| | | - Ü
| | | - sonstige
| | | - Minimalpaare
| | - Gültig oder nicht gültig? Die Crux mit d...
| | | - A
| | | - B
| | | - C
| | | - D
| | | - E
| | | - F
| | | - G
| | | - H
| | | - I
| | | - J
| | | - K
| | | - L
| | | - M
| | | - N
| | | - O
| | | - P
| | | - Q
| | | - R
| | | - S
| | | - T
| | | - U
| | | - V
| | | - W
| | | - X
| | | - Y
| | | - Z
| | - Der Blick übern Zaun: Universalduden & Co
| | - Duden
| | | - Externer Direktlink zu Geros SuperDic-Ch...
| | - Tipps und Tricks zu Scrabble
| | - Tutorial: Die Wortsuche in Scrabble3D
| | | - Allgemeines
| | | - Inhaltsverzeichnis
| | | - L 1
| | | - L 2
| | | - L 3
| | | - L 4
| | | - L 5
| | | - L 6
| | | - L 7
| | | - L 8
| | | - Diskussion und Fragen
| | - Kurioses und Unterhaltsames
| | - Archiv
| | | - RD 25
| | | - RD 26
Français
| | - Mises à jour
| | - Rapports de bogues & suggestions
| | | - Rapports de bogues & suggestions
| | | - Bogues éliminés & désirs exaucés
| | - FAQ et support
| | | - Questions sur le programme
| | | - Questions lors de problèmes
| | | - Conseil du jour
| | | - Wiki
| | - Serveur
| | | - Statut du serveur
| | | - Questions sur le serveur et les jeux en ...
| | - Scrabble3D
| | | - Forum, Facebook, Twitter
| | | - français.dic
| | | - Validité des mots
| | | - Café
Italiano
| | - Aggiornamenti
| | - Segnalazioni di bug e suggerimenti
| | | - Segnalazioni di bug e suggerimenti
| | | - Bug eliminati e richieste esaudite
| | - FAQ e supporto
| | | - Domande sul programma
| | | - Suggerimento del giorno
| | | - Wiki
| | - Server
| | | - Status del server
| | | - Domande sul server di gioco ed il gioco ...
| | - Scrabble3D
| | | - Scrabble in generale
| | | - italiano.dic
| | | - Forum, Facebook, Twitter
| | | - Caffè
| | - Problemi di Scrabble
| | | - 2011
| | - Napulitano
Español
| | - Actualizaciones
| | - FAQ y soporte
| | | - Preguntas sobre el programa
| | | - Wiki
| | - Servidor
| | | - Estatus del servidor
| | | - Preguntas sobre el servidor de juego y e...
| | - Scrabble3D
| | | - español.dic
| | | - Forum, Facebook, Twitter
| | | - Café
| | - Scrabble en general
| | | - Desafíos y rompecabezas
Svenska
| | - Uppdateringar
| | - FAQ och support
| | - Server
| | | - Serverstatus
| | | - Frågor om servern och nätverksspel
| | - Scrabble3D
| | | - Café
Lingua Latina
| | - Auxilium: De ludo Scrabble3D lingua Lati...
| | - De verbis in indicem latin.dic referendis
| | | - A
| | | - B
| | | - C
| | | - D
| | | - E
| | | - F
| | | - G
| | | - H
| | | - I
| | | - L
| | | - M
| | | - N
| | | - O
| | | - P
| | | - Q
| | | - R
| | | - S
| | | - T
| | | - U
| | | - V
| | | - X
| | | - Sonstige: K Y Z
| | | - Grundsatzentscheidungen
| | | - Problemfälle des L&S-Wortschatzes
| | | - Fragen zur Grammatik
| | | - Lewis & Short - Lexikographisches
| | | - Gesamtlisten
| | | - Sonstige Listen
| | - Universalia
| | | - De programmate ludoque Scrabble3D
| | | - Discussions in English about Latin Scrabble
| | | - Taberna
| | - Aenigmata Scrabularum
International
| | - General: Internationalization and Locali...
| | | - Practical tips for translation of *.lang...
| | | - General Questions About Translation/Loca...
| | | - International Scrabble Rules
| | | - Tipps für Fremdsprachen
| | | - International Users' Requests
| | - Arabic
| | - Basque
| | - Catalan
| | - Celtic languages
| | | - Irish Gaelic - Gaeilge
| | | - Díospóireacht faoi Scrabble i nGaeilge
| | | - Scottish Gaelic - Gàidhlig
| | | - Deasbadan air Scrabble sa Ghàidhlig
| | - Dutch
| | - Esperanto
| | - Finnish
| | - Fula / Fulfulde / Pulaar
| | - Greek
| | | - Ἑλληνικὴ γλῶσσα - Ancient Greek - Altgri...
| | | - Νέα Ελληνικά - Modern Greek - Neugriechisch
| | - Hebrew
| | - Hungarian
| | - Persian
| | | - Scrabble3D auf Persisch
| | | - Farsinchens Café
| | - Polish
| | - Portuguese
| | - Romanian
| | - Russian
| | - Slovakian
| | - Tamil
| | - More languages
Sprung