Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lang): improve translations for various message prompts #1264

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/MsgPublish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ export default class MsgPublish extends Vue {
if (!this.msgRecord.topic && !this.msgRecord?.properties?.topicAlias) {
this.topicRequired = true
this.$notify({
title: this.$tc('connections.topicReuired'),
title: this.$tc('connections.topicRequired'),
message: '',
type: 'warning',
duration: 3000,
Expand Down
22 changes: 11 additions & 11 deletions src/lang/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,26 +342,26 @@ export default {
ja: 'ユーザー プロパティ',
hu: 'Felhasználói tulajdonságok',
},
topicReuired: {
zh: '请输入 Topic,请注意下方提示',
topicRequired: {
zh: '请输入主题,并注意下方提示',
en: 'Topic is required, please check the hint below',
tr: 'Konu gerekli, lütfen aşağıdaki ipucunu kontrol edin',
ja: 'トピックを入力してください。下のヒントを確認してください',
hu: 'Téma szükséges, kérjük ellenőrizze az alábbi tippet',
},
topicCannotContain: {
zh: '不能向包含通配符 #、+ 的 Topic 发布消息',
en: 'You cannot publish the message to a Topic that contains wildcards characters #, +',
tr: '#, + karakterlerini içeren bir Konuya mesaj gönderemezsiniz',
zh: '不能向包含通配符 #、+ 的主题发布消息',
en: 'Cannot publish messages to topics containing wildcard characters #, +',
tr: '#, + joker karakterler içeren konulara mesaj gönderilemez',
ja: 'ワイルドカード文字 #、+ を含むトピックにメッセージを送信できません',
hu: '#, + karakterlerini tartalmazó témához nem küldhetsz üzenetet',
hu: 'Nem lehet üzenetet küldeni az #, + karaktereket tartalmazó témákhoz',
},
topicTips: {
zh: '可订阅单个或多个主题,订阅多主题时,请使用逗号分隔(,)',
en: 'You can subscribe to single or multiple topics, please use comma separation to subscribe to multiple topics (,)',
tr: 'Tek veya birden fazla konuya abone olabilirsiniz, birden fazla konuya abone olmak için lütfen virgülle ayırmayı kullanın (,)',
ja: '複数のトピックを購読する場合は、カンマで区切ってください(,)。',
hu: 'Feliratkozhat egy vagy több témára, kérjük, használjon vesszőt, ha több témára szeretne feliratkozni (,)',
zh: '可订阅一个或多个主题,订阅多个主题时,请用逗号分隔(,)',
en: 'Subscribe to one or multiple topics, use a comma to separate multiple topics (,)',
tr: 'Bir veya birden fazla konuya abone olun, birden fazla konu için virgül kullanın (,)',
ja: '1つまたは複数のトピックを購読し、複数のトピックをカンマで区切ってください(,)。',
hu: 'Iratkozz fel egy vagy több témára, használj vesszőt több téma elválasztásához (,)',
},
payloadReuired: {
zh: '请输入 Payload',
Expand Down
2 changes: 1 addition & 1 deletion web/src/lang/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export default {
en: 'User Properties',
ja: 'ユーザー プロパティ',
},
topicReuired: {
topicRequired: {
zh: '请输入 Topic',
en: 'Topic is required',
ja: 'トピックを入力してください',
Expand Down
2 changes: 1 addition & 1 deletion web/src/views/connections/ConnectionsDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ export default class ConnectionsDetail extends Vue {
const { id, topic, qos, payload, retain, properties } = message

if (!topic && !properties?.topicAlias) {
this.$message.warning(this.$tc('connections.topicReuired'))
this.$message.warning(this.$tc('connections.topicRequired'))
return false
}

Expand Down