Module talk:I18n/ordinal

Schemes for Hindi

{{Editrequest}}

	['hi'] 		= 'hi-scheme',		-- Hindi

Based on my understanding from the documentation, the below should place the gendered suffix of the specific numerals up to 9 (default if not specified), then place the default gendered suffixes from 10 onwards. Should also add an alternate style for the oblique case. Please make any corrections necessary.

-- Hindi
	['hi-scheme'] = {
		rules = 'gendered-suffix-n',
		suffix_f = 'वीं',
		suffix_m = 'वाँ',
		suffix_n = 'वाँ',
		suffix_0 = 'तम',
		suffix_1_f = 'ली',
		suffix_1_m = 'ला',
		suffix_1_n = 'ला',
		suffix_2_f = 'री',
		suffix_2_m = 'रा',
		suffix_2_n = 'रा',
		suffix_3_f = 'री',
		suffix_3_m = 'रा',
		suffix_3_n = 'रा',
		suffix_4_f = 'थी',
		suffix_4_m = 'था',
		suffix_4_n = 'था',
		suffix_6_f = 'ठी',
		suffix_6_m = 'ठा',
		suffix_6_n = 'ठा',
	},

-- Hindi (oblique case)
	['hi-scheme/oblique'] = {
		rules = 'gendered-suffix-n',
		suffix_f = 'वीं',
		suffix_m = 'वें',
		suffix_n = 'वें',
		suffix_0 = 'तम',
		suffix_1_f = 'ली',
		suffix_1_m = 'ले',
		suffix_1_n = 'ले',
		suffix_2_f = 'री',
		suffix_2_m = 'रे',
		suffix_2_n = 'रे',
		suffix_3_f = 'री',
		suffix_3_m = 'रे',
		suffix_3_n = 'रे',
		suffix_4_f = 'थी',
		suffix_4_m = 'थे',
		suffix_4_n = 'थे',
		suffix_6_f = 'ठी',
		suffix_6_m = 'ठे',
		suffix_6_n = 'ठे',
	},

~ Saur (talk contribs) 14:30, 4 December 2024 (UTC)

✓ Done Thank you! Jarekt (talk) 23:21, 31 December 2024 (UTC)
@Jarekt The main code is collapsed below the paragraph ^_^; ~ Saur (talk contribs) 17:13, 3 January 2025 (UTC)
Saur, I hope I got it now. Sorry I totally missed the expanded code. --Jarekt (talk) 16:16, 4 January 2025 (UTC)

Tamil translation is incorrect

@Verdy p: At , an edit made 10 years ago Tamil support was added to ordinals. However, the suffix used, ஆம் is actually only used for dates. For everything else, the suffix வது is typically used i.e. for numbers, similar to this road sign. Was this a deliberate decision or a mistake? Thanks, —Matrix(!) ping onewhen replying {user - talk? - uselesscontributions} 21:47, 13 January 2025 (UTC)

For instance, you would say இருபத்தியோராம் நூற்றாண்டு (ஆம்) or 21-ஆம் நூற்றாண்டு i.e. 21st century, you would also say ஜூலை நான்காம் தேதி (ஆம்) or ஜூலை 4-ஆம் தேதி i.e. July 4th, but everything else is வது. Do we need to make another scheme for this? —Matrix(!) ping onewhen replying {user - talk? - uselesscontributions} 22:00, 13 January 2025 (UTC)
My opinion is that this module is used almost always for dates (not just day of month, but also quarters of year, centuries, milleniums). I don't know what you include within "everything else" (I've not seen any use for rankings for example). Are there *some* date elements for which the rule changes (e.g. between 4th July and 4th century)? The rule added 10 years ago was made according to Unicode vetted CLDR data, and I've not seen updates there for handling different types of ordinals in Tamil. Maybe this has changed since, need to check, and then be more precise about which cases apply different rules (e.g for road/street names, which are spelled directly without needing any template to derive them from a number, or for chapters/articles/volume numbers appearing in titles or bibliographic/legal references). verdy_p (talk) 22:14, 13 January 2025 (UTC)
@Verdy p: , @Sriveenkat: (as a Tamil speaker): From what I know, -ஆம் is only used in timescales (centuries, months) as a marker for dates. வது is used for just about everything else. Also, on I only see "வது" being used for ordinals. —Matrix(!) ping onewhen replying {user - talk? - uselesscontributions} 18:45, 14 January 2025 (UTC)
You don't understand; this module is only used for ordinals in dates, not for generic ordinals appearing in artwork titles or road numbers (which are spelled completely and normally not translatable). So why changing it here? "Everything else" is not concerning this module as it is used. Or show where it should not be used. Note that we can specialize translations for centuries, milleniums, months, days of months, quarters of years. Please be explicit about the place where it causes a "bug". Then we can review them case by case. The solution is probably not to add a rule name here, as it act as the default for many existing things (notably in dates). I am not saying you're wrong, but this is not the first thing to change here. What is to fix first is in date-relaged templates/modules, so that they use their own ordinals and not this module. Then when all is done, we may change it here. It is a dependency problem because many template/modules are not propared to support different kinds of ordinals. Here, there's only one mapping possible per language, not several, so we cannot change it here for some possible (rares?) cases without breaking *many* existing usages for dates (it is currently used by *really a lot* of infoboxes, showing ordinals for centuries, millenium)... verdy_p (talk) 19:28, 14 January 2025 (UTC)
@Verdy p: I get your point. Maybe instead we can make a scheme for non-date usage, and add a note to Template:Ordinal about that. —Matrix(!) ping onewhen replying {user - talk? - uselesscontributions} 22:05, 16 January 2025 (UTC)