Ticket #1004 (closed enhancement: invalid)

Opened 12 months ago

Last modified 7 months ago

When sending a message, the ajax status text is not translatable.

Reported by: slaFFik Owned by: slaFFik
Priority: minor Milestone: 1.2
Component: Keywords: javascript, ajax, translation, localization, need-dev-input
Cc: Jason_JM

Description

Didn't find an existent ticket, so created a new one with thus problem.
When a person is answering on smbd's message (hi/she has opened it and typed a text in a form) and clicking Send Reply -> - the ajax blue box is opened with the text "Sending Message...". I didn't find this text anywhere in bp-messages folder or pot file.
It's somewhere in javascript? Could it be checked and made translatable?

Change History

Changed 12 months ago by Jason_JM

  • cc Jason_JM added
  • summary changed from Sending Message text is not translatable to When sending a message, the ajax status text is not translatable.
  • priority changed from major to minor
  • milestone changed from 1.1 to 1.2
  • keywords javascript, ajax, localization, need-dev-input added; localization removed
  • type changed from defect to enhancement

Verified.

However, this is 'hard-coded' in bp-themes/bp-sn-parent/_inc/js/ajax.js

Proposals:
1.) Dependent on language, load a hard-coded language dependent js file with $someVar="Sending message";
2.) Dependent on language, load a generated language dependent js file with $someVar="Sending message" via a pot?
3.) Code ajax.js to look for and select the first found embedded html generated by php:
<div id="ajaxLang" style="display:none visible:hidden">

<span id="ajaxLang_SendMessage" class="ajaxLang_English">Sending Message</span>

</div>

Need to talk about this item.

Flagging this as an enhancement and milestone 1.2.

Changed 7 months ago by DJPaul

  • status changed from new to closed
  • resolution set to invalid

I can't see "Sending message" in BP 1.2-RC2. We have accommodated this sort of thing in bp-default/functions.php bp_dtheme_js_terms(). Please reopen with location and current string if this remains an issue somewhere.

Note: See TracTickets for help on using tickets.