Skip to content

[HOLD for payment + bonus Aug 16] Translation Missing for Edit Message buttons #4494

Closed

Description

@mananjadhav

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!

Upwork post: https://www.upwork.com/jobs/~01141d41100982c438


Action Performed:

  1. Go to Sidebar click on Preference
  2. Change the language to Spanish
  3. Come back to Chat Messages and right-click to Edit Comment
  4. You'll see the button texts still shows "Cancel" and "Save Changes

Expected Result:

Should show the button texts in Spanish

Actual Result:

Shows the button texts in English only
edit-comment-button-translations-missing

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:

View all open jobs on Upwork

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Aug 7, 2021
  2. MelvinBot commented on Aug 7, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @lschurr (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriage
    on Aug 7, 2021
  4. mananjadhav commented on Aug 7, 2021

    @mananjadhav
    CollaboratorAuthor

    Proposal

    Basically the button texts are hardcoded with english content. Need to pick these from translations.

    In ReportActionItemMessageEdit.js,

    // Change button texts with translate function
    
    <Button
        style={[styles.mr2]}
        onPress={this.deleteDraft}
        text={this.props.translate('common.cancel')}
    />
    <Button
        success
        style={[styles.mr2]}
        onPress={this.publishDraft}
        text={this.props.translate('common.saveChanges')}
    />
    
    
    // Add references for localization
    
    
    export default compose(    
    	withLocalize, withWindowDimensions
    )(ReportActionItemMessageEdit);
    
    

    and add translation for saveChanges key in en.js and es.js

    en: 
    	common: {
    		saveChanges: 'Save Changes'
    	}
    
    es:
    	common: {
    		saveChanges: 'Guardar cambios'
    	}
    
    
  5. lschurr commented on Aug 9, 2021

    @lschurr
    Contributor

    Is this different from this one? #4218

  6. mananjadhav commented on Aug 9, 2021

    @mananjadhav
    CollaboratorAuthor

    @lschurr Yes. This one handles the button texts - Edit and Cancel (highlighted in red rectangle in the screenshot above).

    #4218 deals with the timestamp itself not showing up when language is switched. (Line below the red rectangle).

  7. added
    Improvement
    Weekly
    and removed
    Daily
    on Aug 9, 2021
  8. MelvinBot commented on Aug 9, 2021

    @MelvinBot
    Contributor

    Triggered auto assignment to @Jag96 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  9. removed their assignment
    on Aug 9, 2021
  10. 3 remaining items

  11. added
    Help Wanted
    on Aug 10, 2021
  12. Jag96 commented on Aug 10, 2021

    @Jag96
    Contributor

    @mananjadhav your proposal looks good and straightforward, I've invited you to the job, feel free to start on the PR once accepted.

  13. added
    Weekly
    and removed
    Help Wanted
    Daily
    on Aug 10, 2021
  14. mananjadhav commented on Aug 10, 2021

    @mananjadhav
    CollaboratorAuthor

    PR raised.

  15. changed the title [-]Translation Missing for Edit Message buttons[/-] [+][HOLD for payment + bonus Aug 16] Translation Missing for Edit Message buttons[/+] on Aug 10, 2021
  16. added
    Reviewing
    on Aug 10, 2021
  17. Jag96 commented on Aug 17, 2021

    @Jag96
    Contributor

    Paid + bonus!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalImprovementReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions