From 4a90de057c6117cac6fde598c5d3edd9d86595fd Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Fri, 3 Feb 2017 14:05:12 -0500 Subject: [PATCH] rewording and consolidating some conditions --- app/assets/javascripts/landing.js | 4 +- app/views/landing/_invite_join.html.erb | 4 +- app/views/landing/_previously_joined.html.erb | 2 +- .../landing/_rooms_center_panel.html.erb | 2 +- .../_rooms_meetings_center_panel.html.erb | 2 +- app/views/landing/meetings.html.erb | 2 +- app/views/shared/_join_form.html.erb | 56 ++++++++----------- config/locales/en-us.yml | 14 ++--- 8 files changed, 36 insertions(+), 50 deletions(-) diff --git a/app/assets/javascripts/landing.js b/app/assets/javascripts/landing.js index 8c3eb52b..5c758e0e 100644 --- a/app/assets/javascripts/landing.js +++ b/app/assets/javascripts/landing.js @@ -168,7 +168,7 @@ Meeting.getInstance().setMeetingId(newId); $(".page-wrapper.meetings").data('id', newId); $('.meeting-url').val(Meeting.getInstance().getURL()); - $('.join-meeting-title').html(I18n.join_title.replace(/%{id}/, newId)); + $('.join-meeting-title').text('"'+newId+'"'); if (newId === '') { $('.invite-join-wrapper').addClass('hidden'); } else { @@ -190,7 +190,7 @@ var newId = $(this).val(); Meeting.getInstance().setMeetingId(newId); $('.meeting-url').val(Meeting.getInstance().getURL()); - $('.join-meeting-title').html(I18n.join_title.replace(/%{id}/, newId)); + $('.join-meeting-title').text('"'+newId+'"'); if (newId === '') { $('.invite-join-wrapper').addClass('hidden'); } else { diff --git a/app/views/landing/_invite_join.html.erb b/app/views/landing/_invite_join.html.erb index 7f11b5b0..fcdbc247 100644 --- a/app/views/landing/_invite_join.html.erb +++ b/app/views/landing/_invite_join.html.erb @@ -1,4 +1,4 @@ - diff --git a/config/locales/en-us.yml b/config/locales/en-us.yml index f0da90d6..dc809fb0 100644 --- a/config/locales/en-us.yml +++ b/config/locales/en-us.yml @@ -37,13 +37,13 @@ en-US: actions: Actions - are_you: Are you %{name} ? + admin_room_title: Welcome %{user} + are_you: Are you %{name}? are_you_sure: Are you sure? change_recording_visibility: "Change visibility to:" client: are_you_sure: Are you sure? delete_recording: Delete recording - join_title: Join "%{id}" meeting_ended: Meeting was ended meeting_started: Meeting was started no_recordings: No Recordings @@ -64,7 +64,7 @@ en-US: copy_error: Use Ctrl-c to copy create_your_session: Create your own meeting date_recorded: Date - duration: Duration (minutes) + duration: Length (minutes) end: End enter_name: Enter your name enter_meeting_name: Enter a meeting name to start @@ -76,10 +76,9 @@ en-US: invite: Invite invite_description: (share this link below to invite others to this meeting) join: Join - join_session_id: Join %{id} logged_in_description_html: You are logged in as %{link} login: login - login_description: Want your own recorded meetings? + login_description: Want to record a meeting? logout: logout meeting: Meeting meeting_invite: @@ -100,13 +99,12 @@ en-US: subject: "Your recording is ready!" past_recordings: Past Recordings presentation: Presentation - previously_joined_meetings: Previously Joined Meetings + previous_meetings: (previous meetings) return_to_room: Return to your personal room session_url_explanation: The meeting will be taking place using the following URL signin_text: Log in with %{provider} start: Start - start_meeting: Start Meeting - your_personal_room: Your Personal Room + start_join: Start thumbnails: Thumbnails url_copy_explanation: Copy this URL to invite others to the meeting user_person_room: "%{name} personal room"