|
Player12
An open source football management simulator
|
Italian definite articles for club names ("il Lecce", "la Roma", "l'Acaya", "lo Stoke City"). More...
Functions | |
| std::string_view | italian (std::string_view club_name) |
| std::string | withPreposition (std::string_view club_name, std::string_view preposition) |
club_name preceded by the Italian preposition fused with its article: ("di", "Roma") gives "della Roma", ("a", "Acaya") "all'Acaya", ("il", "Lecce") just "il Lecce". A capitalised preposition ("Il", "Di") capitalises the result for the start of a sentence. Unknown prepositions return the name unchanged. | |
Italian definite articles for club names ("il Lecce", "la Roma", "l'Acaya", "lo Stoke City").
Italian templates write "{0:di}" instead of "del {0}" (see formatLocalized()), so the article follows the club rather than being hard-coded in the sentence. A club's article comes from the optional "article_it" field of its data-pack entry; without it the masculine form is chosen from the name's first sounds, which is how Italian treats clubs named after a city.
| std::string_view ClubArticle::italian | ( | std::string_view | club_name | ) |
"il", "lo", "l'" or "la" for club_name.
| std::string ClubArticle::withPreposition | ( | std::string_view | club_name, |
| std::string_view | preposition | ||
| ) |
club_name preceded by the Italian preposition fused with its article: ("di", "Roma") gives "della Roma", ("a", "Acaya") "all'Acaya", ("il", "Lecce") just "il Lecce". A capitalised preposition ("Il", "Di") capitalises the result for the start of a sentence. Unknown prepositions return the name unchanged.