Skip to content

Commit

Permalink
fix: styles changes and removed unused i18n labels
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Dec 9, 2024
1 parent e1562ea commit fb7a7ac
Show file tree
Hide file tree
Showing 26 changed files with 16 additions and 31 deletions.
1 change: 0 additions & 1 deletion app/i18n/locales/ar.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "تفاعل شخص واحد",
"A_meaningful_name_for_the_discussion_room": "اسم معبر لغرفة النقاش",
"Accessibility_statement": "بيان الوصول",
"Actions": "الإجراءات",
"Activity": "النشاط",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/bn-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} খালি রুম স্বয়ংক্রিয়ভাবে মুছে ফেলা হবে।",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} খালি রুম স্বয়ংক্রিয়ভাবে মুছে ফেলা হবে।",
"1_person_reacted": "1 জন ব্যক্তি প্রতিক্রিয়া দিয়েছে",
"A_meaningful_name_for_the_discussion_room": "আলোচনা কক্ষের জন্য একটি অর্থপূর্ণ নাম",
"A_new_owner_will_be_assigned_automatically_to__count__room": "{{count}} রুমে নতুন মালিক স্বয়ংক্রিয়ভাবে নির্ধারণ করা হবে।",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "{{count}} রুমে নতুন মালিক স্বয়ংক্রিয়ভাবে নির্ধারণ করা হবে।",
"accept": "গ্রহণ করুন",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} prázdná místnost bude smazána.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} prázdných místností bude smazáno.",
"1_person_reacted": "1 osoba reagovala",
"A_meaningful_name_for_the_discussion_room": "Smysluplný název pro diskusní místnost",
"A_new_owner_will_be_assigned_automatically_to__count__room": "K {{count}} místnosti bude automaticky přiřazen nový vlastník.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "K {{count}} místnostem bude automaticky přiřazen nový vlastník.",
"accept": "Akceptovat",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} leerer Raum wird gelöscht.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} leere Räume werden gelöscht.",
"1_person_reacted": "1 Person hat reagiert",
"A_meaningful_name_for_the_discussion_room": "Ein aussagekräftiger Name für den Unterhaltungs-Room",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Ein neuer Besitzer wird automatisch zu {{count}} Raum zugeordnet.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Ein neuer Besitzer wird automatisch zu {{count}} Räumen zugeordnet.",
"accept": "Annehmen",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} empty room will be deleted.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} empty rooms will be deleted.",
"1_person_reacted": "1 person reacted",
"A_meaningful_name_for_the_discussion_room": "A meaningful name for the discussion room",
"A_new_owner_will_be_assigned_automatically_to__count__room": "A new owner will be assigned automatically to {{count}} room.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "A new owner will be assigned automatically to {{count}} rooms.",
"accept": "Accept",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} tyhjä huone poistetaan.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} tyhjää huonetta poistetaan.",
"1_person_reacted": "1 henkilö reagoi",
"A_meaningful_name_for_the_discussion_room": "Mielekäs nimi keskusteluhuoneelle",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Uusi omistaja liitetään automaattisesti {{count}} huoneeseen.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Uusi omistaja liitetään automaattisesti {{count}} huoneeseen.",
"Accessibility_statement": "Saavutettavuusilmoitus",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 personne a réagi",
"A_meaningful_name_for_the_discussion_room": "Un nom significatif pour le salon de discussion",
"Accessibility_statement": "Déclaration d'accessibilité",
"Actions": "Actions",
"Activity": "Activité",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} खाली कमरा स्वच्छता से हटा दिया जाएगा।",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} खाली कमरे स्वच्छता से हटा दिए जाएंगे।",
"1_person_reacted": "1 व्यक्ति ने प्रतिक्रिया दी",
"A_meaningful_name_for_the_discussion_room": "चर्चा कमरे के लिए एक सार्थक नाम",
"A_new_owner_will_be_assigned_automatically_to__count__room": "{{count}} कमरे को स्वच्छता से नया मालिक सौंपा जाएगा।",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "{{count}} कमरों को स्वच्छता से नया मालिक सौंपा जाएगा।",
"accept": "स्वीकार करें",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} üres szoba lesz törölve.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} üres szoba lesz törölve.",
"1_person_reacted": "1 személy reagált",
"A_meaningful_name_for_the_discussion_room": "Egy értelmes név a megbeszélés szobájának",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Az új tulajdonos automatikus hozzárendelésre kerül {{count}} szobához.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Az új tulajdonos automatikus hozzárendelésre kerül {{count}} szobához.",
"accept": "Elfogadom",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} stanza vuota verrà eliminata.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} stanze vuote verranno eliminate.",
"1_person_reacted": "1 persona ha reagito",
"A_meaningful_name_for_the_discussion_room": "Un nome significativo per il canale di discussione",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Un nuovo proprietario verrà assegnato automaticamente alla stanza {{count}}.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Un nuovo proprietario verrà assegnato automaticamente a {{count}} stanze.",
"Accessibility_statement": "Dichiarazione di accessibilità",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/ja.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1人がリアクション",
"A_meaningful_name_for_the_discussion_room": "ディスカッションルームわかりやすい名前",
"Accessibility_statement": "アクセシビリティ声明",
"Actions": "アクション",
"Activity": "アクティビティ順",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/nl.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 persoon heeft gereageerd",
"A_meaningful_name_for_the_discussion_room": "Een betekenisvolle naam voor de discussieruimte",
"Accessibility_statement": "Toegankelijkheidsverklaring",
"Actions": "Acties",
"Activity": "Activiteit",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} sala vazia será excluída.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} salas vazias serão excluídas.",
"1_person_reacted": "1 pessoa reagiu",
"A_meaningful_name_for_the_discussion_room": "Um nome significativo para o canal de discussão",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Um novo proprietário será atribuído automaticamente a {{count}} sala.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Um novo proprietário será atribuído automaticamente a {{count}} salas.",
"accept": "Aceitar",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/pt-PT.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 pessoa reagiu",
"A_meaningful_name_for_the_discussion_room": "Um nome significativo para a sala de discussão",
"Accessibility_statement": "Declaração de acessibilidade",
"Actions": "Acções",
"Activity": "Actividade",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} пустых чатов будет удалено.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} пустых чатов будет удалено.",
"1_person_reacted": "1 человек отреагировал",
"A_meaningful_name_for_the_discussion_room": "Осмысленное имя для обсуждения",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Новый владелец будет автоматически назначен на {{count}} чатов.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Новый владелец будет автоматически назначен на {{count}} чатов.",
"Accessibility_statement": "Заявление о доступности",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/sl-SI.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} prazna soba bo izbrisana.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} praznih sob bo izbrisanih.",
"1_person_reacted": "1 oseba se je odzvala",
"A_meaningful_name_for_the_discussion_room": "Pomenljivo ime za pogovorno sobo",
"A_new_owner_will_be_assigned_automatically_to__count__room": "Novi lastnik bo samodejno dodeljen {{count}} sobi.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "Novi lastnik bo samodejno dodeljen {{count}} sobam.",
"Accessibility_statement": "Izjava o dostopnosti",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} tomt rum tas bort.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} tomma rum tas bort.",
"1_person_reacted": "1 person reagerade",
"A_meaningful_name_for_the_discussion_room": "Ett beskrivande namn på diskussionsrummet",
"A_new_owner_will_be_assigned_automatically_to__count__room": "En ny ägare utses automatiskt för {{count}} rum.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "En ny ägare utses automatiskt för {{count}} rum.",
"Accessibility_statement": "Tillgänglighetsredogörelse",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/ta-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} காலிக அறை தானாக நீக்கப்படும்.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} காலிக அறைகள் தானாக நீக்கப்படும்.",
"1_person_reacted": "1 பேர் பின்னால் பதில் செய்துள்ளனர்",
"A_meaningful_name_for_the_discussion_room": "கலந்துரை அறைக்கு ஒரு அர்த்தமுள்ள பெயர்",
"A_new_owner_will_be_assigned_automatically_to__count__room": "{{count}} அறைக்கு புதிய உரிமையாளர் தானாகவே முடிந்துவிடப்படும்.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "{{count}} அறைகளுக்கு புதிய உரிமையாளர் தானாகவே முடிந்துவிடப்படும்.",
"accept": "ஏற்றுக்கொள்",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/te-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"__count__empty_room_will_be_removed_automatically": "{{count}} ఖాళీ కొరకు స్వయంగా తొలగిపోతాయి.",
"__count__empty_rooms_will_be_removed_automatically": "{{count}} ఖాళీ కొరకులు స్వయంగా తొలగిపోతాయి.",
"1_person_reacted": "1 వ్యక్తి ప్రతిక్రియించింది",
"A_meaningful_name_for_the_discussion_room": "చర్చా కొరకు ఒక అర్థపూర్ణమైన పేరు",
"A_new_owner_will_be_assigned_automatically_to__count__room": "కొత్త యజమాని స్వయంగా నియమించబడుతుంది {{count}} అంగడాయినందు.",
"A_new_owner_will_be_assigned_automatically_to__count__rooms": "కొత్త యజమాని స్వయంగా నియమించబడుతుంది {{count}} అంగడులకు.",
"accept": "అంగీకరించు",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/tr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 kişi tepki verdi.",
"A_meaningful_name_for_the_discussion_room": "Tartışma odası için anlamlı bir isim",
"Accessibility_statement": "Erişilebilirlik beyanı",
"Actions": "İşlemler",
"Activity": "Etkinlik",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 人回复了",
"A_meaningful_name_for_the_discussion_room": "取一个有意义的讨论区的名称",
"Accessibility_statement": "无障碍声明",
"Actions": "操作",
"Activity": "按活动时间排列",
Expand Down
1 change: 0 additions & 1 deletion app/i18n/locales/zh-TW.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"1_person_reacted": "1 人回覆了",
"A_meaningful_name_for_the_discussion_room": "取一個有意義的討論區名稱",
"Accessibility_statement": "无障碍声明",
"Actions": "操作",
"Activity": "以活動時間排序",
Expand Down
9 changes: 4 additions & 5 deletions app/views/CreateDiscussionView/SelectChannel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const SelectChannel = ({
onChannelSelect,
initial,
blockUnauthenticatedAccess,
serverVersion,
required
serverVersion
}: ICreateDiscussionViewSelectChannel): React.ReactElement => {
const [channels, setChannels] = useState<ISearchLocal[]>([]);
const { colors } = useTheme();
Expand Down Expand Up @@ -56,10 +55,10 @@ const SelectChannel = ({
});

return (
<View accessibilityLabel={`${I18n.t('Parent_channel_or_group')} - ${required ? I18n.t('Required') : ''}`}>
<View accessibilityLabel={`${I18n.t('Parent_channel_or_group')}, ${I18n.t('Required')}`}>
<Text style={[styles.label, { color: colors.fontTitlesLabels }]}>
{I18n.t('Parent_channel_or_group')}{' '}
{required && <Text style={[styles.required, { color: colors.fontSecondaryInfo }]}>({I18n.t('Required')})</Text>}
<Text style={[styles.required, { color: colors.fontSecondaryInfo }]}>({I18n.t('Required')})</Text>
</Text>
<MultiSelect
inputStyle={styles.inputStyle}
Expand All @@ -73,7 +72,7 @@ const SelectChannel = ({
imageUrl: getAvatar(channel)
}))}
onClose={() => getChannels('')}
placeholder={{ text: `${I18n.t('Select_a_Channel')}` }}
placeholder={{ text: I18n.t('Select_a_Channel') }}
/>
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion app/views/CreateDiscussionView/SelectUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const SelectUsers = ({
text: { text: getRoomTitle(user) },
imageUrl: getAvatar(user)
}))}
placeholder={{ text: `${I18n.t('Select_Users')}` }}
placeholder={{ text: I18n.t('Select_Users') }}
context={BlockContext.FORM}
multiselect
/>
Expand Down
12 changes: 10 additions & 2 deletions app/views/CreateDiscussionView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,15 @@ class CreateDiscussionView extends React.Component<ICreateChannelViewProps, ICre
<Text style={[styles.description, { color: themes[theme].fontDefault }]}>{I18n.t('Discussion_Desc')}</Text>
<View style={{ gap: 12, paddingTop: 12 }}>
<SelectChannel
required
server={server}
userId={user.id}
token={user.token}
initial={this.channel && { text: getRoomTitle(this.channel) }}
onChannelSelect={this.selectChannel}
blockUnauthenticatedAccess={blockUnauthenticatedAccess}
serverVersion={serverVersion}
/>
<SelectChannel
server={server}
userId={user.id}
token={user.token}
Expand Down Expand Up @@ -185,7 +193,7 @@ class CreateDiscussionView extends React.Component<ICreateChannelViewProps, ICre
<Button
testID='create-discussion-submit'
disabled={!this.valid()}
style={{ marginTop: 24 }}
style={{ marginTop: 36 }}
title={I18n.t('Create_Discussion')}
onPress={this.submit}
/>
Expand Down
2 changes: 1 addition & 1 deletion app/views/CreateDiscussionView/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default StyleSheet.create({
...sharedStyles.textSemibold
},
inputStyle: {
marginBottom: 16
marginBottom: 0
},
description: {
lineHeight: 24,
Expand Down

0 comments on commit fb7a7ac

Please sign in to comment.