In Turkish (and possibly in other similar languages), there are suffixes that change corresponding to the word they are applied. This also holds for the numbers.
For example,
in Figure \ref{fig1}
is written in Turkish as follows:
Şekil \ref{fig1}'de
The problem here is that the suffix "de"
should change according to the number rendered before it. It should be like
1'de, 2'de, 3'te, 4'te, 5'te, 6'da, ..., 60'ta, ..., 70'te, ...
I don't like to check the suffixes manually after finishing the paper. This also happens for the other cross-references like equations.
How can I do this in LaTeX?
Edit: I'm adding the complete rule as @egreg asks. The determining numbers are as follows:
0'da
1'de
2'de
3'te
4'te
5'te
6'da
7'de
8'de
9'da
10'da
20'de
30'da
40'da
50'de
60'ta
70'te
80'de
90'da
100'de
1000'de
1000000'da
1000000000'da
For all the others, the number at the end determines the suffix if it is non-zero. For example
1234'te (4'te)
303'te (3'te)
But, if there's a zero at the end and the number is not zero, then the right-most non-zero digit determines the result:
230'da (30'da)
200'de (100'de)
4000'de (1000'de)
40000'de (1000'de)
400000'de (1000'de)
4000000'da (1000000'da)
The suffix is determined by the last read word. For example 40000 is read as "kırk bin" and it becomes "40000'de". It is the same as "1000'de" which is read as "binde".
fmtcount
can be of use. I have to go now, but later (3 hours maybe) I'll prepare an.def
file for this Turkish rules (unless someone else does so).