i18n: add Brazilian Portuguese (pt-br) UI translation
This commit is contained in:
@@ -182,11 +182,14 @@ pub fn build(app: &EffectcraftApp) -> NativeMenu {
|
||||
if let Some(role) = role {
|
||||
// Services sits just above Hide, as in every Mac app.
|
||||
if role == Role::Hide && !services_added {
|
||||
out.push(NativeNode::Predefined {
|
||||
role: Role::Services,
|
||||
label: if crate::i18n::japanese(app) { "サービス" } else { "Services" }.into(),
|
||||
command: String::new(),
|
||||
});
|
||||
let services = if crate::i18n::japanese(app) {
|
||||
"サービス"
|
||||
} else if crate::i18n::language(app) == "pt-br" {
|
||||
"Serviços"
|
||||
} else {
|
||||
"Services"
|
||||
};
|
||||
out.push(NativeNode::Predefined { role: Role::Services, label: services.into(), command: String::new() });
|
||||
out.push(NativeNode::Separator);
|
||||
services_added = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user