From 0b36442ffecb258c69e53c0aece16bc0f8e2fcea Mon Sep 17 00:00:00 2001 From: Paul Rashidi Date: Thu, 18 Aug 2016 13:25:35 -0700 Subject: [PATCH 1/4] Proposal to support alternate translations. --- app/testdata/checklist_items.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/testdata/checklist_items.json b/app/testdata/checklist_items.json index 758864b..dc8c914 100644 --- a/app/testdata/checklist_items.json +++ b/app/testdata/checklist_items.json @@ -7,7 +7,15 @@ "location": "US Social Security Administration, 1029 Camino La Costa, Austin, TX 78752", "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", "email": "", - "phone": "1-800-772-1213" + "phone": "1-800-772-1213", + "alt": { + "ru": { + "name": "Russian name translation" + }, + "pr": { + "name": "Portuguese name translation" + } + } }, "2": { "name": "Get state identification card", From 808c989a1537bef330ee112d7fbf2c357eb26d52 Mon Sep 17 00:00:00 2001 From: Paul Rashidi Date: Thu, 18 Aug 2016 13:58:17 -0700 Subject: [PATCH 2/4] Alternate proposal. --- app/testdata/checklist_items.json | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/testdata/checklist_items.json b/app/testdata/checklist_items.json index dc8c914..2a9c50b 100644 --- a/app/testdata/checklist_items.json +++ b/app/testdata/checklist_items.json @@ -8,14 +8,10 @@ "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", "email": "", "phone": "1-800-772-1213", - "alt": { - "ru": { - "name": "Russian name translation" - }, - "pr": { - "name": "Portuguese name translation" - } - } + }, + "1-ru": { + "name": "Russian name translation", + "description": "Russian description translation" }, "2": { "name": "Get state identification card", From d6008e3be56c764192312648c56ea2fe4a699ac0 Mon Sep 17 00:00:00 2001 From: Paul Rashidi Date: Thu, 18 Aug 2016 14:16:19 -0700 Subject: [PATCH 3/4] Alt2 proposal. --- app/testdata/checklist_items.json | 88 ++++++++++++++++--------------- 1 file changed, 46 insertions(+), 42 deletions(-) diff --git a/app/testdata/checklist_items.json b/app/testdata/checklist_items.json index 2a9c50b..a39c9d1 100644 --- a/app/testdata/checklist_items.json +++ b/app/testdata/checklist_items.json @@ -1,49 +1,53 @@ { "checklists": { "basic": { + "en": { + "1": { + "name": "Get social security card", + "description": "In the United States, a Social Security number is a number assigned to U.S. Citizens, permanent residents, and temporary (working) residents. The primary purpose is to track individuals for taxes and identification. A Social Security lists your name and Social Security number, and is often necessary for obtaining other items, such as a state identification card. People don't usually carry their Social Security cards with them everywhere, since they are not usually necessary on a day-to-day basis.", + "location": "US Social Security Administration, 1029 Camino La Costa, Austin, TX 78752", + "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", + "email": "", + "phone": "1-800-772-1213", + }, + "2": { + "name": "Get state identification card", + "description": "State identification cards, or state ID cards, are used to identify people for everyday tasks such as financial transactions and age verification. In order to obtain a state ID card in Texas, you will need a Social Security card. You should carry your state ID card with you every day.", + "location": "Texas Department of Public Safety 5805 N Lamar Blvd, Austin, TX 78752", + "directions_url": "https://www.google.com/maps/place/Texas+Department+of+Public+Safety/@30.3264658,-97.7255281,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca46dcf0be55:0x1a342c9d9863d05b!8m2!3d30.3264658!4d-97.7233394", + "email": "", + "phone": "1-512-424-2000" + }, + "3": { + "name": "Submit information to unemployment office", + "description": "In the United States, if you are looking for employment, but do not currently have a job, you can often collect 'unemployment benefits' for a short period of time. These payments are provided by the state government, and they help you pay for basic needs until you have a job to support yourself.", + "location": "Texas Workforce Commission 2810 E Martin Luther King Jr Blvd, Austin, TX 78702", + "directions_url": "https://www.google.com/maps/place/Texas+Workforce+Commission/@30.2819065,-97.7135026,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5e91d5120d7:0x2fe0ab2c19a88990!8m2!3d30.2819065!4d-97.7113139", + "email": "laborinfo@twc.state.tx.us", + "phone": "1-512-480-8101" + }, + "4": { + "name": "Buy a bus pass", + "description": "The Capital Metro system provides public transportation via bus and sometimes light rail anywhere within Austin city limits. When you board a bus or train, you will be required to either pay for the ride, or show a bus pass, so you should carry a bus pass with you at all times.", + "location": "Capital Metro 209 West 9th Street, Austin, TX 78701", + "directions_url": "https://www.google.com/maps/place/Capital+Metro+Transit+Store/@30.271223,-97.7462346,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b508420e242d:0x8df332980f4b004b!8m2!3d30.271223!4d-97.7440459", + "email": "customer.service@capmetro.org", + "phone": " 1-512-389-7454" + }, + "5": { + "name": "Enroll children in school", + "description": "In the United States, public school is provided for children from 5 to 18 years of age. In Austin, the school year runs from September until June. In order to attend public school, children must be registered at the Austin Independent School District office in downtown Austin.", + "location": "Austin Independent School District 1111 W 6th Street Austin, TX 78703", + "directions_url": "https://www.google.com/maps/place/Austin+Independent+School+District/@30.271564,-97.7587266,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b513a2be5731:0xb4f1cb61acd29991!8m2!3d30.271564!4d-97.7565379", + "email": "", + "phone": "1-512-414-1700" + } + } + }, + "basic-ru": { "1": { - "name": "Get social security card", - "description": "In the United States, a Social Security number is a number assigned to U.S. Citizens, permanent residents, and temporary (working) residents. The primary purpose is to track individuals for taxes and identification. A Social Security lists your name and Social Security number, and is often necessary for obtaining other items, such as a state identification card. People don't usually carry their Social Security cards with them everywhere, since they are not usually necessary on a day-to-day basis.", - "location": "US Social Security Administration, 1029 Camino La Costa, Austin, TX 78752", - "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", - "email": "", - "phone": "1-800-772-1213", - }, - "1-ru": { - "name": "Russian name translation", - "description": "Russian description translation" - }, - "2": { - "name": "Get state identification card", - "description": "State identification cards, or state ID cards, are used to identify people for everyday tasks such as financial transactions and age verification. In order to obtain a state ID card in Texas, you will need a Social Security card. You should carry your state ID card with you every day.", - "location": "Texas Department of Public Safety 5805 N Lamar Blvd, Austin, TX 78752", - "directions_url": "https://www.google.com/maps/place/Texas+Department+of+Public+Safety/@30.3264658,-97.7255281,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca46dcf0be55:0x1a342c9d9863d05b!8m2!3d30.3264658!4d-97.7233394", - "email": "", - "phone": "1-512-424-2000" - }, - "3": { - "name": "Submit information to unemployment office", - "description": "In the United States, if you are looking for employment, but do not currently have a job, you can often collect 'unemployment benefits' for a short period of time. These payments are provided by the state government, and they help you pay for basic needs until you have a job to support yourself.", - "location": "Texas Workforce Commission 2810 E Martin Luther King Jr Blvd, Austin, TX 78702", - "directions_url": "https://www.google.com/maps/place/Texas+Workforce+Commission/@30.2819065,-97.7135026,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5e91d5120d7:0x2fe0ab2c19a88990!8m2!3d30.2819065!4d-97.7113139", - "email": "laborinfo@twc.state.tx.us", - "phone": "1-512-480-8101" - }, - "4": { - "name": "Buy a bus pass", - "description": "The Capital Metro system provides public transportation via bus and sometimes light rail anywhere within Austin city limits. When you board a bus or train, you will be required to either pay for the ride, or show a bus pass, so you should carry a bus pass with you at all times.", - "location": "Capital Metro 209 West 9th Street, Austin, TX 78701", - "directions_url": "https://www.google.com/maps/place/Capital+Metro+Transit+Store/@30.271223,-97.7462346,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b508420e242d:0x8df332980f4b004b!8m2!3d30.271223!4d-97.7440459", - "email": "customer.service@capmetro.org", - "phone": " 1-512-389-7454" - }, - "5": { - "name": "Enroll children in school", - "description": "In the United States, public school is provided for children from 5 to 18 years of age. In Austin, the school year runs from September until June. In order to attend public school, children must be registered at the Austin Independent School District office in downtown Austin.", - "location": "Austin Independent School District 1111 W 6th Street Austin, TX 78703", - "directions_url": "https://www.google.com/maps/place/Austin+Independent+School+District/@30.271564,-97.7587266,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b513a2be5731:0xb4f1cb61acd29991!8m2!3d30.271564!4d-97.7565379", - "email": "", - "phone": "1-512-414-1700" + "name": "Russian name", + "description": "Russian description" } } } From 6c3d37adf1c8481d72731ea31fb4651bb180bb2b Mon Sep 17 00:00:00 2001 From: Paul Rashidi Date: Thu, 18 Aug 2016 14:18:19 -0700 Subject: [PATCH 4/4] Fix Alt2 proposal. --- app/testdata/checklist_items.json | 80 +++++++++++++++---------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/app/testdata/checklist_items.json b/app/testdata/checklist_items.json index a39c9d1..55f5d84 100644 --- a/app/testdata/checklist_items.json +++ b/app/testdata/checklist_items.json @@ -1,47 +1,45 @@ { "checklists": { "basic": { - "en": { - "1": { - "name": "Get social security card", - "description": "In the United States, a Social Security number is a number assigned to U.S. Citizens, permanent residents, and temporary (working) residents. The primary purpose is to track individuals for taxes and identification. A Social Security lists your name and Social Security number, and is often necessary for obtaining other items, such as a state identification card. People don't usually carry their Social Security cards with them everywhere, since they are not usually necessary on a day-to-day basis.", - "location": "US Social Security Administration, 1029 Camino La Costa, Austin, TX 78752", - "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", - "email": "", - "phone": "1-800-772-1213", - }, - "2": { - "name": "Get state identification card", - "description": "State identification cards, or state ID cards, are used to identify people for everyday tasks such as financial transactions and age verification. In order to obtain a state ID card in Texas, you will need a Social Security card. You should carry your state ID card with you every day.", - "location": "Texas Department of Public Safety 5805 N Lamar Blvd, Austin, TX 78752", - "directions_url": "https://www.google.com/maps/place/Texas+Department+of+Public+Safety/@30.3264658,-97.7255281,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca46dcf0be55:0x1a342c9d9863d05b!8m2!3d30.3264658!4d-97.7233394", - "email": "", - "phone": "1-512-424-2000" - }, - "3": { - "name": "Submit information to unemployment office", - "description": "In the United States, if you are looking for employment, but do not currently have a job, you can often collect 'unemployment benefits' for a short period of time. These payments are provided by the state government, and they help you pay for basic needs until you have a job to support yourself.", - "location": "Texas Workforce Commission 2810 E Martin Luther King Jr Blvd, Austin, TX 78702", - "directions_url": "https://www.google.com/maps/place/Texas+Workforce+Commission/@30.2819065,-97.7135026,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5e91d5120d7:0x2fe0ab2c19a88990!8m2!3d30.2819065!4d-97.7113139", - "email": "laborinfo@twc.state.tx.us", - "phone": "1-512-480-8101" - }, - "4": { - "name": "Buy a bus pass", - "description": "The Capital Metro system provides public transportation via bus and sometimes light rail anywhere within Austin city limits. When you board a bus or train, you will be required to either pay for the ride, or show a bus pass, so you should carry a bus pass with you at all times.", - "location": "Capital Metro 209 West 9th Street, Austin, TX 78701", - "directions_url": "https://www.google.com/maps/place/Capital+Metro+Transit+Store/@30.271223,-97.7462346,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b508420e242d:0x8df332980f4b004b!8m2!3d30.271223!4d-97.7440459", - "email": "customer.service@capmetro.org", - "phone": " 1-512-389-7454" - }, - "5": { - "name": "Enroll children in school", - "description": "In the United States, public school is provided for children from 5 to 18 years of age. In Austin, the school year runs from September until June. In order to attend public school, children must be registered at the Austin Independent School District office in downtown Austin.", - "location": "Austin Independent School District 1111 W 6th Street Austin, TX 78703", - "directions_url": "https://www.google.com/maps/place/Austin+Independent+School+District/@30.271564,-97.7587266,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b513a2be5731:0xb4f1cb61acd29991!8m2!3d30.271564!4d-97.7565379", - "email": "", - "phone": "1-512-414-1700" - } + "1": { + "name": "Get social security card", + "description": "In the United States, a Social Security number is a number assigned to U.S. Citizens, permanent residents, and temporary (working) residents. The primary purpose is to track individuals for taxes and identification. A Social Security lists your name and Social Security number, and is often necessary for obtaining other items, such as a state identification card. People don't usually carry their Social Security cards with them everywhere, since they are not usually necessary on a day-to-day basis.", + "location": "US Social Security Administration, 1029 Camino La Costa, Austin, TX 78752", + "directions_url": "https://www.google.com/maps/place/US+Social+Security+Administration/@30.3243715,-97.7028468,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca20295a7e57:0x849908e001c1d623!8m2!3d30.3243715!4d-97.7006581", + "email": "", + "phone": "1-800-772-1213", + }, + "2": { + "name": "Get state identification card", + "description": "State identification cards, or state ID cards, are used to identify people for everyday tasks such as financial transactions and age verification. In order to obtain a state ID card in Texas, you will need a Social Security card. You should carry your state ID card with you every day.", + "location": "Texas Department of Public Safety 5805 N Lamar Blvd, Austin, TX 78752", + "directions_url": "https://www.google.com/maps/place/Texas+Department+of+Public+Safety/@30.3264658,-97.7255281,17z/data=!3m1!4b1!4m5!3m4!1s0x8644ca46dcf0be55:0x1a342c9d9863d05b!8m2!3d30.3264658!4d-97.7233394", + "email": "", + "phone": "1-512-424-2000" + }, + "3": { + "name": "Submit information to unemployment office", + "description": "In the United States, if you are looking for employment, but do not currently have a job, you can often collect 'unemployment benefits' for a short period of time. These payments are provided by the state government, and they help you pay for basic needs until you have a job to support yourself.", + "location": "Texas Workforce Commission 2810 E Martin Luther King Jr Blvd, Austin, TX 78702", + "directions_url": "https://www.google.com/maps/place/Texas+Workforce+Commission/@30.2819065,-97.7135026,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b5e91d5120d7:0x2fe0ab2c19a88990!8m2!3d30.2819065!4d-97.7113139", + "email": "laborinfo@twc.state.tx.us", + "phone": "1-512-480-8101" + }, + "4": { + "name": "Buy a bus pass", + "description": "The Capital Metro system provides public transportation via bus and sometimes light rail anywhere within Austin city limits. When you board a bus or train, you will be required to either pay for the ride, or show a bus pass, so you should carry a bus pass with you at all times.", + "location": "Capital Metro 209 West 9th Street, Austin, TX 78701", + "directions_url": "https://www.google.com/maps/place/Capital+Metro+Transit+Store/@30.271223,-97.7462346,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b508420e242d:0x8df332980f4b004b!8m2!3d30.271223!4d-97.7440459", + "email": "customer.service@capmetro.org", + "phone": " 1-512-389-7454" + }, + "5": { + "name": "Enroll children in school", + "description": "In the United States, public school is provided for children from 5 to 18 years of age. In Austin, the school year runs from September until June. In order to attend public school, children must be registered at the Austin Independent School District office in downtown Austin.", + "location": "Austin Independent School District 1111 W 6th Street Austin, TX 78703", + "directions_url": "https://www.google.com/maps/place/Austin+Independent+School+District/@30.271564,-97.7587266,17z/data=!3m1!4b1!4m5!3m4!1s0x8644b513a2be5731:0xb4f1cb61acd29991!8m2!3d30.271564!4d-97.7565379", + "email": "", + "phone": "1-512-414-1700" } }, "basic-ru": {