Skip to content

Commit

Permalink
Merge pull request #2869 from dimagi/dv/ccct-489-page-titles
Browse files Browse the repository at this point in the history
Updated Connect page titles
  • Loading branch information
OrangeAndGreen authored Oct 10, 2024
2 parents 54b21b5 + 91d68da commit e59f90e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,8 @@
<string name="connect_job_visits_completed">Completed %d visits</string>
<string name="connect_job_remaining">%d days remaining%s</string>

<string name="connect_job_intro_title">Opportunity</string>

<string name="connect_job_remaining_from"> from %s</string>

<string name="connect_job_learning">Learning</string>
Expand Down Expand Up @@ -628,6 +630,7 @@
<string name="connect_learn_failed_title">Training Failed</string>
<string name="connect_learn_complete_by">Complete Project by %s</string>

<string name="connect_learn_title">Learning Progress</string>
<string name="connect_learn_status">You have completed %d of %d lessons.\nFinish learning to earn your certificate.</string>
<string name="connect_learn_not_started">You haven\'t completed any lessons.\nStart learning to earn your certificate.</string>
<string name="connect_learn_finished">You have earned a certificate for this job and are eligible to claim the job and begin delivering care.\nYour score: %d\nPassing score: %d</string>
Expand Down Expand Up @@ -820,6 +823,7 @@
<item>save</item>
</string-array>

<string name="connect_job_info_title">Opportunity Details</string>
<string name="connect_job_info_delivery_detail">Delivery Details</string>
<string name="connect_job_info_review_delivery">Review the delivery details</string>
<string name="connect_job_info_visit">%d maximum Visits</string>
Expand All @@ -830,6 +834,7 @@
<string name="connect_job_info_download_delivery">Download Delivery </string>
<string name="connect_job_info_download">Download</string>

<string name="connect_delivery_progress_title">Delivery Progress</string>
<string name="connect_progress">Progress</string>
<string name="connect_payment">Payment</string>
<string name="connect_delivery_progress_description">You haven’t completed any lessons. Start learning to earn your certificate.</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void onCreate(Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ConnectJobRecord job = ConnectManager.getActiveJob();
getActivity().setTitle(job.getTitle());
getActivity().setTitle(getString(R.string.connect_job_info_title));

View view = inflater.inflate(R.layout.fragment_connect_delivery_details, container, false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onCreate(Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ConnectJobRecord job = ConnectManager.getActiveJob();
getActivity().setTitle(job.getTitle());
getActivity().setTitle(getString(R.string.connect_delivery_progress_title));

if (getArguments() != null) {
showLearningLaunch = getArguments().getBoolean("showLaunch", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ConnectJobRecord job = ConnectManager.getActiveJob();

getActivity().setTitle(job.getTitle());
getActivity().setTitle(getString(R.string.connect_job_intro_title));

View view = inflater.inflate(R.layout.fragment_connect_job_intro, container, false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void onCreate(Bundle savedInstanceState) {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
ConnectJobRecord job = ConnectManager.getActiveJob();
getActivity().setTitle(job.getTitle());
getActivity().setTitle(getString(R.string.connect_learn_title));

if(getArguments() != null) {
showAppLaunch = getArguments().getBoolean("showLaunch", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void afterTextChanged(Editable s) {
displayNumber(existingPhone);
}

getActivity().setTitle("ConnectID Signup");
getActivity().setTitle(getString(R.string.connect_registration_title));
return view;
}

Expand Down

0 comments on commit e59f90e

Please sign in to comment.