Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Align common string with Element X project in Localazy
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Aug 21, 2023
1 parent 3d2d08b commit fc926a4
Show file tree
Hide file tree
Showing 93 changed files with 1,341 additions and 1,191 deletions.
2 changes: 1 addition & 1 deletion src/AsyncWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class AsyncWrapper extends React.Component<IProps, IState> {
return <Component {...this.props} />;
} else if (this.state.error) {
return (
<BaseDialog onFinished={this.props.onFinished} title={_t("Error")}>
<BaseDialog onFinished={this.props.onFinished} title={_t("common|error")}>
{_t("Unable to load! Check your network connectivity and try again.")}
<DialogButtons
primaryButton={_t("Dismiss")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class ConfirmAndWaitRedactDialog extends React.PureComponent<IPro
return (
<ErrorDialog
onFinished={this.props.onFinished}
title={_t("Error")}
title={_t("common|error")}
description={_t("You cannot delete this message. (%(code)s)", { code })}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/dialogs/ConfirmRedactDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function createRedactEventDialog({
if (typeof code !== "undefined") {
// display error message stating you couldn't delete this.
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("You cannot delete this message. (%(code)s)", { code }),
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/dialogs/ErrorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class ErrorDialog extends React.Component<IProps, IState> {
<BaseDialog
className="mx_ErrorDialog"
onFinished={this.props.onFinished}
title={this.props.title || _t("Error")}
title={this.props.title || _t("common|error")}
headerImage={this.props.headerImage}
contentId="mx_Dialog_content"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
</div>
);
} else if (this.state.loadError) {
title = _t("Error");
title = _t("common|error");
content = _t("Unable to load backup status");
} else if (this.state.restoreError) {
if (
Expand Down Expand Up @@ -371,11 +371,11 @@ export default class RestoreKeyBackupDialog extends React.PureComponent<IProps,
);
}
} else {
title = _t("Error");
title = _t("common|error");
content = _t("Unable to restore backup");
}
} else if (this.state.backupInfo === null) {
title = _t("Error");
title = _t("common|error");
content = _t("No backup found!");
} else if (this.state.recoverInfo) {
title = _t("Keys restored");
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/messages/EncryptionEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const EncryptionEvent = forwardRef<HTMLDivElement, IProps>(({ mxEvent, timestamp
return (
<EventTileBubble
className="mx_cryptoEvent mx_cryptoEvent_icon"
title={_t("Encryption enabled")}
title={_t("common|encryption_enabled")}
subtitle={subtitle}
timestamp={timestamp}
/>
Expand All @@ -80,7 +80,7 @@ const EncryptionEvent = forwardRef<HTMLDivElement, IProps>(({ mxEvent, timestamp
return (
<EventTileBubble
className="mx_cryptoEvent mx_cryptoEvent_icon"
title={_t("Encryption enabled")}
title={_t("common|encryption_enabled")}
subtitle={_t("Ignored attempt to disable encryption")}
timestamp={timestamp}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/messages/MFileBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default class MFileBody extends React.Component<IProps, IState> {
} catch (err) {
logger.warn("Unable to decrypt attachment: ", err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Error decrypting attachment"),
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/right_panel/RoomSummaryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,9 @@ const RoomSummaryCard: React.FC<IProps> = ({ room, permalinkCreator, onClose })

return (
<BaseCard header={header} className="mx_RoomSummaryCard" onClose={onClose}>
<Group title={_t("About")} className="mx_RoomSummaryCard_aboutGroup">
<Group title={_t("common|about")} className="mx_RoomSummaryCard_aboutGroup">
<Button className="mx_RoomSummaryCard_icon_people" onClick={onRoomMembersClick}>
{_t("People")}
{_t("common|people")}
<span className="mx_BaseCard_Button_sublabel">{memberCount}</span>
</Button>
{!isVideoRoom && (
Expand Down
12 changes: 6 additions & 6 deletions src/components/views/right_panel/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const MessageButton = ({ member }: { member: Member }): JSX.Element => {
className="mx_UserInfo_field"
disabled={busy}
>
{_t("Message")}
{_t("common|message")}
</AccessibleButton>
);
};
Expand Down Expand Up @@ -850,7 +850,7 @@ export const BanToggleButton = ({
function (err) {
logger.error("Ban error: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to ban user"),
});
},
Expand Down Expand Up @@ -932,7 +932,7 @@ const MuteToggleButton: React.FC<IBaseRoomProps> = ({
function (err) {
logger.error("Mute error: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to mute user"),
});
},
Expand All @@ -946,7 +946,7 @@ const MuteToggleButton: React.FC<IBaseRoomProps> = ({
mx_UserInfo_destructive: !muted,
});

const muteLabel = muted ? _t("Unmute") : _t("Mute");
const muteLabel = muted ? _t("common|unmute") : _t("common|mute");
return (
<AccessibleButton kind="link" className={classes} onClick={onMuteToggle} disabled={isUpdating}>
{muteLabel}
Expand Down Expand Up @@ -1164,7 +1164,7 @@ export const PowerLevelEditor: React.FC<{
function (err) {
logger.error("Failed to change power level " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to change power level"),
});
},
Expand Down Expand Up @@ -1524,7 +1524,7 @@ const BasicUserInfo: React.FC<{

const securitySection = (
<div className="mx_UserInfo_container">
<h3>{_t("Security")}</h3>
<h3>{_t("common|security")}</h3>
<p>{text}</p>
{verifyButton}
{cryptoEnabled && (
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/settings/AddPrivilegedUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const AddPrivilegedUsers: React.FC<AddPrivilegedUsersProps> = ({ room, de
// `RoomPowerLevels` event should exist, but technically it is not guaranteed.
if (powerLevelEvent === null) {
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to change power level"),
});

Expand All @@ -67,7 +67,7 @@ export const AddPrivilegedUsers: React.FC<AddPrivilegedUsersProps> = ({ room, de
setPowerLevel(defaultUserLevel);
} catch (error) {
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to change power level"),
});
} finally {
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/settings/account/PhoneNumbers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default class PhoneNumbers extends React.Component<IProps, IState> {
logger.error("Unable to add phone number " + phoneNumber + " " + err);
this.setState({ verifying: false, continueDisabled: false, addTask: null });
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: extractErrorMessageFromError(err, _t("Operation failed")),
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class BannedUser extends React.Component<IBannedUserProps> {
this.context.unban(this.props.member.roomId, this.props.member.userId).catch((err) => {
logger.error("Failed to unban: " + err);
Modal.createDialog(ErrorDialog, {
title: _t("Error"),
title: _t("common|error"),
description: _t("Failed to unban"),
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export default class SecurityUserSettingsTab extends React.Component<IProps, ISt
privacySection = (
<SettingsSection heading={_t("Privacy")}>
<SettingsSubsection
heading={_t("Analytics")}
heading={_t("common|analytics")}
description={_t(
"Share anonymous data to help us identify issues. Nothing personal. No third parties.",
)}
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/strings/am.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"Use Single Sign On to continue": "ለመቀጠል ነጠላ ምዝገባ ይጠቀሙ",
"This phone number is already in use": "ይህ ስልክ ቁጥር ከዚህ በፊት ጥቅም ላይ የዋለ ነው።",
"This email address is already in use": "ይህ የኢሜል አድራሻ ከዚህ በፊት ጥቅም ላይ የዋለ ነው።"
"This email address is already in use": "ይህ የኢሜል አድራሻ ከዚህ በፊት ጥቅም ላይ የዋለ ነው።",
"common": {}
}
4 changes: 3 additions & 1 deletion src/i18n/strings/ang.json
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"common": {}
}
36 changes: 19 additions & 17 deletions src/i18n/strings/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
"Dismiss": "أهمِل",
"Failed to change password. Is your password correct?": "فشلت عملية تعديل الكلمة السرية. هل كلمتك السرية صحيحة ؟",
"Warning": "تنبيه",
"Error": "عُطل",
"Remove": "حذف",
"Send": "إرسال",
"Edit": "تعديل",
"This email address is already in use": "عنوان البريد هذا مستعمل",
"This phone number is already in use": "رقم الهاتف هذا مستخدم بالفعل",
"Failed to verify email address: make sure you clicked the link in the email": "فشل التثبّت من عنوان البريد الإلكتروني: تأكّد من نقر الرابط في البريد المُرسل",
"Analytics": "التحاليل",
"Unavailable": "غير متوفر",
"All Rooms": "كل الغُرف",
"All messages": "كل الرسائل",
Expand Down Expand Up @@ -263,7 +261,6 @@
"expand": "توسيع",
"collapse": "تضييق",
"Please <newIssueLink>create a new issue</newIssueLink> on GitHub so that we can investigate this bug.": "الرجاء <newIssueLink> إنشاء إشكال جديد</newIssueLink> على GitHub حتى نتمكن من التحقيق في هذا الخطأ.",
"No results": "لا نتائج",
"Join": "انضم",
"This version of %(brand)s does not support searching encrypted messages": "لا يدعم هذا الإصدار من %(brand)s البحث في الرسائل المشفرة",
"This version of %(brand)s does not support viewing some encrypted files": "لا يدعم هذا الإصدار من %(brand)s s عرض بعض الملفات المشفرة",
Expand Down Expand Up @@ -312,7 +309,6 @@
"Message deleted by %(name)s": "حذف الرسالة %(name)s",
"Message deleted": "حُذفت الرسالة",
"<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>": "<reactors/><reactedWith>تفاعلو ب%(shortName)s</reactedWith>",
"Reactions": "التفاعلات",
"Show all": "أظهر الكل",
"Error decrypting video": "تعذر فك تشفير الفيديو",
"You sent a verification request": "أنت أرسلت طلب تحقق",
Expand Down Expand Up @@ -345,7 +341,6 @@
"The encryption used by this room isn't supported.": "التشفير الذي تستخدمه هذه الغرفة غير مدعوم.",
"Encryption not enabled": "التشفير غير مفعل",
"Ignored attempt to disable encryption": "تم تجاهل محاولة تعطيل التشفير",
"Encryption enabled": "التشفير مفعل",
"View Source": "انظر المصدر",
"Yesterday": "أمس",
"Today": "اليوم",
Expand All @@ -356,7 +351,6 @@
"Tuesday": "الثلاثاء",
"Monday": "الاثنين",
"Sunday": "الأحد",
"Verification cancelled": "أُلغي التحقق",
"You cancelled verification.": "لقد ألغيتَ التحقق.",
"%(displayName)s cancelled verification.": "%(displayName)s ألغى التحقق.",
"Verification timed out.": "انتهت مهلة التحقق.",
Expand Down Expand Up @@ -417,7 +411,6 @@
"other": "%(count)s من الرسائل والإشارات غير المقروءة."
},
"Room options": "خيارات الغرفة",
"Settings": "الإعدادات",
"Low Priority": "أولوية منخفضة",
"Favourite": "تفضيل",
"Favourited": "فُضلت",
Expand Down Expand Up @@ -470,7 +463,6 @@
"Add room": "أضف غرفة",
"Rooms": "الغرف",
"Start chat": "ابدأ محادثة",
"People": "الأشخاص",
"Favourites": "مفضلات",
"Invites": "دعوات",
"Search": "بحث",
Expand All @@ -487,7 +479,6 @@
"Room %(name)s": "الغرفة %(name)s",
"Replying": "الرد",
"Unknown": "غير معروف",
"Offline": "منفصل",
"Idle": "جامد",
"Online": "متصل",
"Unknown for %(duration)s": "غير معروف منذ %(duration)s",
Expand Down Expand Up @@ -582,12 +573,9 @@
"Account": "الحساب",
"Phone numbers": "أرقام الهواتف",
"Email addresses": "عنوان البريد الإلكتروني",
"Success": "نجاح",
"Appearance Settings only affect this %(brand)s session.": "إنما تؤثر إعدادات المظهر في %(brand)s وعلى هذا الاتصال فقط.",
"Customise your appearance": "تخصيص مظهرك",
"Set the name of a font installed on your system & %(brand)s will attempt to use it.": "قم بتعيين اسم الخط المثبت على نظامك وسيحاول %(brand)s استخدامه.",
"Modern": "حديث",
"Message layout": "مظهر الرسائل",
"Theme": "المظهر",
"Add theme": "إضافة مظهر",
"Custom theme URL": "رابط المظهر المخصص",
Expand Down Expand Up @@ -672,7 +660,6 @@
"If you can't scan the code above, verify by comparing unique emoji.": "إذا لم تتمكن من مسح الرمز أعلاه ، فتحقق بمقارنة الرموز التعبيرية الفريدة.",
"Ask %(displayName)s to scan your code:": "اطلب من %(displayName)s مسح رمزك:",
"Verify by scanning": "تحقق بالمسح",
"Security": "الأمان",
"This client does not support end-to-end encryption.": "لا يدعم هذا العميل التشفير من طرف إلى طرف.",
"Failed to deactivate user": "تعذر إلغاء نشاط المستخدم",
"Deactivate user": "إلغاء نشاط المستخدم",
Expand All @@ -681,8 +668,6 @@
"Are you sure?": "هل متأكد أنت؟",
"You will not be able to undo this change as you are promoting the user to have the same power level as yourself.": "لن تكون قادرًا على التراجع عن هذا التغيير لأنك ترقي المستخدم ليكون له نفس مستوى الطاقة لديك.",
"Failed to change power level": "تعذر تغيير مستوى القوة",
"Mute": "كتم",
"Unmute": "رفع الكتم",
"Failed to mute user": "تعذر كتم المستخدم",
"Failed to ban user": "تعذر حذف المستخدم",
"Remove recent messages": "احذف الرسائل الحديثة",
Expand Down Expand Up @@ -715,7 +700,6 @@
"Trusted": "موثوق",
"Room settings": "إعدادات الغرفة",
"Share room": "شارك الغرفة",
"About": "حول",
"Not encrypted": "غير مشفر",
"Add widgets, bridges & bots": "إضافة عناصر الواجهة والجسور والروبوتات",
"Edit widgets, bridges & bots": "تعديل عناصر الواجهة والجسور والروبوتات",
Expand Down Expand Up @@ -1336,5 +1320,23 @@
"You cannot place calls in this browser.": "لا يمكنك إجراء المكالمات في هذا المتصفّح.",
"Calls are unsupported": "المكالمات غير مدعومة",
"%(user1)s and %(user2)s": "%(user1)s و %(user2)s",
"Empty room": "غرفة فارغة"
"Empty room": "غرفة فارغة",
"common": {
"about": "حول",
"analytics": "التحاليل",
"encryption_enabled": "التشفير مفعل",
"error": "عُطل",
"message_layout": "مظهر الرسائل",
"modern": "حديث",
"mute": "كتم",
"no_results": "لا نتائج",
"offline": "منفصل",
"people": "الأشخاص",
"reactions": "التفاعلات",
"security": "الأمان",
"settings": "الإعدادات",
"success": "نجاح",
"unmute": "رفع الكتم",
"verification_cancelled": "أُلغي التحقق"
}
}
14 changes: 8 additions & 6 deletions src/i18n/strings/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@
"%(senderName)s changed the power level of %(powerLevelDiffText)s.": "%(senderName)s hüquqların səviyyələrini dəyişdirdi %(powerLevelDiffText)s.",
"Always show message timestamps": "Həmişə mesajların göndərilməsi vaxtını göstərmək",
"Accept": "Qəbul etmək",
"Error": "Səhv",
"Incorrect verification code": "Təsdiq etmənin səhv kodu",
"Phone": "Telefon",
"New passwords don't match": "Yeni şifrlər uyğun gəlmir",
"Passwords can't be empty": "Şifrələr boş ola bilməz",
"Continue": "Davam etmək",
"Export E2E room keys": "Şifrləmənin açarlarının ixracı",
"Current password": "Cari şifrə",
"Password": "Şifrə",
"New Password": "Yeni şifrə",
"Confirm password": "Yeni şifrə təsdiq edin",
"Change Password": "Şifrəni dəyişdirin",
Expand All @@ -106,7 +104,6 @@
"Command error": "Komandanın səhvi",
"Join Room": "Otağa girmək",
"Upload avatar": "Avatar-ı yükləmək",
"Settings": "Qurmalar",
"Forget room": "Otağı unutmaq",
"Invites": "Dəvətlər",
"Favourites": "Seçilmişlər",
Expand Down Expand Up @@ -134,7 +131,6 @@
"What's New": "Nə dəyişdi",
"Update": "Yeniləmək",
"Create new room": "Otağı yaratmaq",
"No results": "Nəticə yoxdur",
"Home": "Başlanğıc",
"%(items)s and %(lastItem)s": "%(items)s və %(lastItem)s",
"Start chat": "Çata başlamaq",
Expand Down Expand Up @@ -176,7 +172,6 @@
"Confirm passphrase": "Şifrəni təsdiqləyin",
"This email address is already in use": "Bu e-mail ünvanı istifadə olunur",
"This phone number is already in use": "Bu telefon nömrəsi artıq istifadə olunur",
"Analytics": "Analitik",
"Call Failed": "Uğursuz zəng",
"Permission Required": "İzn tələb olunur",
"You do not have permission to start a conference call in this room": "Bu otaqda konfrans başlamaq üçün icazə yoxdur",
Expand Down Expand Up @@ -251,5 +246,12 @@
"Create Account": "Hesab Aç",
"Explore rooms": "Otaqları kəşf edin",
"Sign In": "Daxil ol",
"Identity server": "Eyniləşdirmənin serveri"
"Identity server": "Eyniləşdirmənin serveri",
"common": {
"analytics": "Analitik",
"error": "Səhv",
"no_results": "Nəticə yoxdur",
"password": "Şifrə",
"settings": "Qurmalar"
}
}
Loading

0 comments on commit fc926a4

Please sign in to comment.