Skip to content

Commit

Permalink
chore: update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed Oct 25, 2024
1 parent 2e8c268 commit c0ff67a
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<!-- Table -->
@if(tableOptions() && tableData().length>0){
@if(tableOptions() && countTotal >0){
<picsa-data-table [data]="tableData()" [options]="tableOptions()" [valueTemplates]="{created_at}">
<ng-template #created_at let-value> {{value | date: 'mediumDate' }} </ng-template>
</picsa-data-table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ export class TranslationsPageComponent {
/** ID of currently selected locale */
public locale = signal(LOCALES_DATA_HASHMAP.global_en.id);

/** Use subset of service translations to include non-archived */
private translations = computed(() => this.service.translations().filter((entry) => !entry.archived));

/** Generated list of table entries */
public tableData = computed(() => {
const translations = this.service.translations();
const translations = this.translations();
const locale = this.locale();
const data = this.generateTableData(locale, translations, this.includeTranslated());
return data;
Expand All @@ -58,13 +61,13 @@ export class TranslationsPageComponent {
/** List of entries pending translation */
public pendingEntries = computed(() => {
const locale = this.locale();
return this.service.translations().filter((entry) => !entry[locale] && !entry.archived);
return this.translations().filter((entry) => !entry[locale]);
});

public translationProgress = computed(() => (100 * this.countTranslated) / this.countTotal);

public get countTotal() {
return this.service.translations().length;
return this.translations().length;
}
public get countPending() {
return this.pendingEntries().length;
Expand Down
30 changes: 15 additions & 15 deletions libs/i18n/assets/zm_ny.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"Add Female Member": "Ikamponi membala wam'kazi",
"Add Male Member": "Ikamponi membala wam'muna",
"Add Option": "Onjezani Njira",
"Add Photo": "•Add Photo•",
"Additional": "•Additional•",
"Add Photo": "Ikani Chithunzi",
"Additional": "Zowonjezera",
"afforestation": "kubyala mitengo",
"After the season": "Pambuyo pakutha kwa Nyengo",
"All Submitted": "Zonse Zaperekedwa",
Expand Down Expand Up @@ -93,11 +93,11 @@
"description": "kaonekeswe",
"Description (optional)": "Kufotokozera (posankha)",
"dipping": "kupaka",
"District": "•District•",
"District": "Boma",
"Download All": "Tsitsani Zonse",
"Download the PICSA Manual": "Tsitsani Buku la PICSA",
"Downloaded": "Zatsitsidwa",
"Downscaled Forecasts": "•Downscaled Forecasts•",
"Downscaled Forecasts": "Zolosera/zanyengo Zochepetsedwa",
"Draw Here": "Jambulani Apa",
"ducks": "abakha",
"During the season": "Mkati mwa Nyengo",
Expand Down Expand Up @@ -134,7 +134,7 @@
"fodder for livestock": "chakudya cha ziweto",
"For Sale": "Zogullitsidwa",
"Forecast": "Chisonyezo cha nyengo",
"Forecasts": "•Forecasts•",
"Forecasts": "Zolosera/zanyengo",
"Forms": "mafomu",
"Frequency of Extreme": "Kuchuluka kopitilira muyeso",
"Fri": "Lachisanu",
Expand All @@ -150,7 +150,7 @@
"Here we can see information for a specific crop variety": "Pano titha kuona zambiri za mtundu wa mbeu winawake.",
"High": "Zapamwamba",
"Historic climate": "Mbiri ya za Nyengo",
"Home": "•Home•",
"Home": "Poyamba",
"hours": "Maola",
"housing": "mosungila",
"How long is your budget for?": "bajeti yanu imakhala yayitali motani?",
Expand Down Expand Up @@ -226,7 +226,7 @@
"New Profile": "Profaelo yatsopano",
"next": "ina",
"Next": "ina",
"No photos added": "•No photos added•",
"No photos added": "Palibe zithunzi zoyikidwa",
"No results found": "Palibe Zotsatira Zopezeka",
"No saved calendars": "Palibe makalendala osungidwa",
"Nov": "Nov",
Expand All @@ -243,10 +243,10 @@
"out of": "kuchokera",
"Outputs": "zotuluka",
"ox cart": "kochikali/ ngolo",
"Paprika": "Paprika",
"Paprika": "Paprika",
"Paw-paw": "paw-paw",
"paw-paw": "paw-paw",
"Pearl Millet": "•Pearl Millet•",
"Pearl Millet": "Mawele",
"Performance": "Kuchita Bwino",
"Performance in high, mid and low rainfall": "Kuchita Bwino Pa Mvula Yambiri, Yochepa, ndi Yapakati",
"PICSA": "PICSA",
Expand All @@ -260,9 +260,9 @@
"ploughing": "kugaula",
"post-harvest handling": "kagwiridwe pambuyo po kolola",
"pot for storage": "mphika posungira",
"Potatoes": "•Potatoes•",
"Potatoes": "Mbatatisi",
"Practice": "Kachitidwe",
"previous": "•previous•",
"previous": "Zambuyo",
"Print Version": "zolembedwa papepala",
"Privacy Policy": "Mfundo zazinsinsi",
"Probability": "mpata wa zoyembekezeleka",
Expand All @@ -281,7 +281,7 @@
"Redo": "Kubwelezanso",
"Reload": "bwezeraninso",
"relocation": "kusamukira",
"Resource Allocation Map": "•Resource Allocation Map•",
"Resource Allocation Map": "Chithunzi cha Kugawidwa kwa Zinthu",
"Resource Allocation Map (RAM)": "Chitunzi cha Zomwe tilinazo",
"Resources": "zipangizo",
"Response to forecast": "Zomwe tichita ndi uthenga wa zanyengo",
Expand Down Expand Up @@ -317,7 +317,7 @@
"Select Enterprise": "sankhani makampani",
"Sep": "Sep",
"September": "Seputembala",
"Sesame": "•Sesame•",
"Sesame": "Mtedza wa Sesiamu",
"Share": "gawani",
"Share App Link": "Gawani ulalo wa app",
"Share as Picture": "gawani monga chithunzi",
Expand Down Expand Up @@ -366,7 +366,7 @@
"Switch to Extension": "Sinthani ku Extension",
"Switch to Farmer": "Sinthani ku Mlimi",
"Terciles": "Misampha",
"Testimonials": "•Testimonials•",
"Testimonials": "Umboni",
"The crop filter shows more information for specific crops": "Chosefera cha mbeu chimawonetsa zambiri zokhudza mbeu zina.",
"The farmer decides": "Mlimi asankha zochita",
"The maturity and water requirements can be used to calculate the chance of satisfying these conditions for a specific planting date": "Masiku okhwima ndi zofunikira za madzi zitha kugwiritsidwa ntchito kuwerengera mwayi wokwaniritsa izi pa tsiku losankhira kulima.",
Expand All @@ -387,7 +387,7 @@
"tools": "zida",
"Total": "zonse",
"tractor hire": "ganyu ya thalakita",
"Training": "•Training•",
"Training": "Maphunziro",
"transport": "mayendedwe",
"transport livestock": "kunyamula ziweto",
"transportation hire": "mayendedwe olipira",
Expand Down
2 changes: 1 addition & 1 deletion libs/i18n/source/mw_ny.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Male Member": "Membala wa mamuna",
"New Budget": "Bajeti yatsopano",
"Outputs": "zotuluka",
"(Outputs )For Sale": "(Zokolora)Zogulitsa",
"(Outputs )For Sale": "(Zokolora) Zogulitsa",
"Produce Consumed": "zokolola zomwe zagwiritsidwa ntchito",
"Purchased": "Zogulidwa",
"Quantity": "kuchuluka",
Expand Down
30 changes: 15 additions & 15 deletions libs/i18n/source/zm_ny.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"Start of Season": "chiyambi cha nyengo",
"Start of season is defined as the first occasion (from 1st October) with more than 25mm in a 3 day period and no dry spell of 10 days or more within the following 30 days": "chiymabi cha nyengo chimatanthauza mvula yoyamba (kuyambira pa 1 okotobala) yomwe yagwa kuposa mlingo wa 25mm mu masiku atatu ndipo kuti panalibe ng'amba ya masiku oposa khumi mu masiku makumi atatu kuchokera nthawi yomwe mvula inagwa.",
"Above": "Pamwamba",
"Add Photo": "",
"Add Photo": "Ikani Chithunzi",
"Are the changes a good idea?": "Kodi kusintha ndi lingaliro labwino?",
"Are you sure you want to delete?": "Kodi mutsimikiza kuti mufuna kufufuta?",
"Below": "Pansi",
Expand All @@ -146,26 +146,26 @@
"Clear All": "Chotsani Zonse",
"Climate": "Nyengo",
"Demo": "Chiwonetsero",
"Downscaled Forecasts": "",
"Downscaled Forecasts": "Zolosera/zanyengo Zochepetsedwa",
"Draw Here": "Jambulani Apa",
"Edit Profiles": "Lembani bwino maprofaelo",
"Extension": "Kukuza",
"Farmer": "Mlimi",
"First 3 days receiving rainfall amount of 20mm and not followed by 9-day dry spell for the next 21 days": "Masiku atatu oyamba kulandira mvula ya 20mm ndipo osatsatiridwa ndi masiku 9 opanda mvula kwa masiku 21 otsatira",
"Forecasts": "",
"Forecasts": "Zolosera/zanyengo",
"I'm a farmer": "Ndine mlimi",
"I'm an extension worker": "Ndine nyanchito wa zaulimi",
"Name": "Dzina",
"New Profile": "Profaelo yatsopano",
"No photos added": "",
"No photos added": "Palibe zithunzi zoyikidwa",
"Options": "Zosankha",
"Probability and Risk": "Mpata komanso ziophyezo",
"Redo": "Kubwelezanso",
"Resource Allocation Map": "",
"Resource Allocation Map": "Chithunzi cha Kugawidwa kwa Zinthu",
"Seasonal Calendar": "Kalenda ya Nyengo",
"Seasonal Forecast": "Uthenga wa zanyengo",
"Seasonal total rainfall calculated between the defined start and defined end of the season": "Mvula yonse ya nyengo yowerengeka pakati pa kuyamba koyambika ndi kutha koyambika kwa nyengo",
"Testimonials": "",
"Testimonials": "Umboni",
"Tool": "Chida",
"Tutorials": "Maphunziro",
"Undo": "Kubwezeretsa",
Expand Down Expand Up @@ -214,14 +214,14 @@
"Maize": "chimanga",
"Mangoes": "Mango",
"Onions": "anyezi",
"Paprika": "",
"Paprika": "Paprika",
"Paw-paw": "paw-paw",
"Pearl Millet": "",
"Pearl Millet": "Mawele",
"Pigeon Peas": "nyamdolo",
"Potatoes": "",
"Potatoes": "Mbatatisi",
"Pumpkins": "Matanje/Maungu",
"Rice": "mpunga",
"Sesame": "",
"Sesame": "Mtedza wa Sesiamu",
"Sorghum": "mapira",
"Soya Beans": "nyemba za soya",
"Sunflower": "M'penya dzuwa/nsendemu",
Expand Down Expand Up @@ -275,7 +275,7 @@
"Crop probabilities depend on when the season starts.\r\nHere you can see the probabilities of the season starting at different dates": "Mwayi wa mbeu umadalira nthawi imene nyengo iyamba. Pano mungathe kuona mwayi wa nyengo kuyamba pa masiku osiyanasiyana",
"Crop water requirement (mm)": "M'yeso wofunikira wa madzi ku mbeu iyi",
"Days to maturity": "Masiku kuti iche",
"District": "",
"District": "Boma",
"Each row contains information about crop, variety, days to maturity and water requirement. Probabilities of receiving requirements are shown for different planting dates": "Mzere uliwonse uli ndi zambiri zokhudza mbeu, mtundu, masiku okula ndi zofunikira za madzi. Mwayi wokwaniritsa zofunikirazo ukuwonetsedwa kwa masiku osiyanasiyana okololako.",
"Here we can see information for a specific crop variety": "Pano titha kuona zambiri za mtundu wa mbeu winawake.",
"In the crop information table, you will be able to see the probabilities for different crops through the different seasons.": "Mu tebulo la zambiri zokhudza mbeu, mudzatha kuwona mwayi wa mbeu zosiyanasiyana pazinyengo zosiyanasiyana.",
Expand All @@ -293,16 +293,16 @@
"Something went wrong...": "chinachake chinalakwika ...",
"Switch to Extension": "Sinthani ku Extension",
"Switch to Farmer": "Sinthani ku Mlimi",
"Additional": "",
"Additional": "Zowonjezera",
"Farmer Activities": "Nchito Za Mlimi",
"Manual": "Buku",
"Monitoring": "Kuyanganira / Kuyendera",
"Probability": "mpata wa zoyembekezeleka",
"Resources": "zipangizo",
"Training": "",
"Home": "",
"Training": "Maphunziro",
"Home": "Poyamba",
"next": "ina",
"previous": "",
"previous": "Zambuyo",
"Activity Flow Chart": "Chithunzi cha Nchito",
"After the season": "Pambuyo pakutha kwa Nyengo",
"Compare different options and plans": "Linganizani Zosankha",
Expand Down

0 comments on commit c0ff67a

Please sign in to comment.