Prechádzať zdrojové kódy

Translation and undefined variable fixes

JC Brand 5 rokov pred
rodič
commit
181d18fcfe

+ 1 - 1
src/headless/converse-core.js

@@ -1129,7 +1129,7 @@ _converse.initialize = async function (settings, callback) {
             _converse.setConnectionStatus(status);
         } else if (status === Strophe.Status.AUTHFAIL) {
             if (!message) {
-                message = __('Your Jabber ID and/or password is incorrect. Please try again.');
+                message = __('Your XMPP address and/or password is incorrect. Please try again.');
             }
             _converse.setConnectionStatus(status, message);
             _converse.setDisconnectionCause(status, message, true);

+ 1 - 1
src/templates/occupant.js

@@ -2,7 +2,7 @@ import { html } from "lit-html";
 import { __ } from '@converse/headless/i18n';
 
 
-const i18n_moderator_hint = ('This user is a moderator.');
+const i18n_moderator_hint = __('This user is a moderator.');
 const i18n_participant_hint = __('This user can send messages in this groupchat.');
 const i18n_visitor_hint = __('This user can NOT send messages in this groupchat.')
 const i18n_owner = __('Owner');

+ 2 - 4
src/templates/profile_modal.js

@@ -21,9 +21,7 @@ const i18n_remove_devices = __('Remove checked devices and close');
 const i18n_role = __('Role');
 const i18n_save = __('Save and close');
 const i18n_select_all = __('Select all');
-const i18n_role_help = __(
-    'Use commas to separate multiple roles. '+
-    'Your roles are shown next to your name on your chat messages.');
+const i18n_role_help = __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.');
 const i18n_url = __('URL');
 const i18n_omemo = __('OMEMO');
 const i18n_profile = __('Profile');
@@ -155,7 +153,7 @@ export default (o) => html`
                             </div>
                         </form>
                     </div>
-                    ${ _converse.pluggable.plugins['converse-omemo'].enabled(_converse) && omemo_page(o) }
+                    ${ o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse) && omemo_page(o) }
                 </div>
             </div>
             <div class="modal-footer">${modal_close_button}</div>