| libglom-1.32
    1.32.0
    | 
HasTitleSingular instances may have a (translated) singular form of their title. More...


| Public Member Functions | |
| HasTitleSingular () | |
| HasTitleSingular (const HasTitleSingular& src)=default | |
| HasTitleSingular (HasTitleSingular&& src)=default | |
| virtual | ~HasTitleSingular ()=default | 
| HasTitleSingular& | operator= (const HasTitleSingular& src)=default | 
| HasTitleSingular& | operator= (HasTitleSingular&& src)=default | 
| bool | operator== (const HasTitleSingular& src) const | 
| bool | operator!= (const HasTitleSingular& src) const | 
| Glib::ustring | get_title_singular (const Glib::ustring& locale) const | 
| Get the (translation of the) singular form of the title, in the current locale, if specified.  More... | |
| Glib::ustring | get_title_singular_original () const | 
| Get the title's original (non-translated, usually English) text.  More... | |
| Glib::ustring | get_title_singular_with_fallback (const Glib::ustring& locale) const | 
| Get the (translation of the) singular form of the title, in the current locale, if specified, falling back to the non-singular title, and then falling back to the table name.  More... | |
| void | set_title_singular (const Glib::ustring& title, const Glib::ustring& locale) | 
| Set the singular title's translation for the current locale.  More... | |
| Public Attributes | |
| std::shared_ptr< TranslatableItem > | m_title_singular | 
| For instance, "Customer" if the table is titled "Customers".  More... | |
HasTitleSingular instances may have a (translated) singular form of their title.
For instance, "Album" instead of "Albums". This is useful in some generated UI strings.
| Glom::HasTitleSingular::HasTitleSingular | ( | ) | 
| 
 | default | 
| 
 | default | 
| 
 | virtualdefault | 
| Glib::ustring Glom::HasTitleSingular::get_title_singular | ( | const Glib::ustring & | locale | ) | const | 
Get the (translation of the) singular form of the title, in the current locale, if specified.
| Glib::ustring Glom::HasTitleSingular::get_title_singular_original | ( | ) | const | 
Get the title's original (non-translated, usually English) text.
| Glib::ustring Glom::HasTitleSingular::get_title_singular_with_fallback | ( | const Glib::ustring & | locale | ) | const | 
Get the (translation of the) singular form of the title, in the current locale, if specified, falling back to the non-singular title, and then falling back to the table name.
| bool Glom::HasTitleSingular::operator!= | ( | const HasTitleSingular& | src | ) | const | 
| 
 | default | 
| 
 | default | 
| bool Glom::HasTitleSingular::operator== | ( | const HasTitleSingular& | src | ) | const | 
| void Glom::HasTitleSingular::set_title_singular | ( | const Glib::ustring & | title, | 
| const Glib::ustring & | locale | ||
| ) | 
Set the singular title's translation for the current locale.
| std::shared_ptr<TranslatableItem> Glom::HasTitleSingular::m_title_singular | 
For instance, "Customer" if the table is titled "Customers".
This is useful in some UI strings.
 1.8.13
 1.8.13