Skip to content

Commit b93002b

Browse files
streamlined language
1 parent 6c8a9e4 commit b93002b

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

pkg/coupons.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type OneScanCoupons struct {
2626
}
2727

2828
func (o OneScanCoupons) String() string {
29-
coupons := fmt.Sprintf("Got %d OneScan-Coupons\n\n", len(o.Coupons))
29+
coupons := fmt.Sprintf("%d OneScan-Coupons\n\n", len(o.Coupons))
3030
for _, c := range o.Coupons {
3131
coupons += c.Title + "\n"
3232
coupons += strings.ReplaceAll(c.Description, "\n", " ")
@@ -83,7 +83,7 @@ type Coupons struct {
8383
}
8484

8585
func (cs Coupons) String() string {
86-
coupons := fmt.Sprintf("Got %d Coupons\n\n", len(cs.Data.GetCoupons.Coupons))
86+
coupons := fmt.Sprintf("%d Coupons\n\n", len(cs.Data.GetCoupons.Coupons))
8787
for _, c := range cs.Data.GetCoupons.Coupons {
8888
coupons += c.Title + " // " + c.OfferTitle + "\n"
8989
coupons += c.Subtitle + "\n"

pkg/market_structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
type Markets []Market
1212

1313
func (ms Markets) String() string {
14-
s := "ID Location\n"
14+
s := "ID Standort\n"
1515
for _, m := range ms {
1616
s += m.String() + "\n"
1717
}

pkg/misc.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ type Recalls []Recall
77

88
func (rs Recalls) String() string {
99
if len(rs) == 0 {
10-
return "Currently no recalls"
10+
return "Aktuell keine Produktrückrufe"
1111
}
1212

13-
recalls := "Recalls:\n"
13+
recalls := "Produktrückrufe:\n"
1414
for _, r := range rs {
1515
recalls += r.String() + "\n"
1616
}
@@ -57,14 +57,14 @@ type RecipeHub struct {
5757

5858
func (rh RecipeHub) String() string {
5959
recipeHub := "Recipe Hub\n\n"
60-
recipeHub += "Recipe of the Day\n--------------------\n" + rh.RecipeOfTheDay.String() + "\n"
60+
recipeHub += "Rezept des Tages\n--------------------\n" + rh.RecipeOfTheDay.String() + "\n"
6161

62-
recipeHub += "Popular Recipes\n--------------------\n"
62+
recipeHub += "Beliebte Rezepte\n--------------------\n"
6363
for _, r := range rh.PopularRecipes {
6464
recipeHub += r.String() + "\n"
6565
}
6666

67-
recipeHub += "Available Categories\n--------------------\n"
67+
recipeHub += "Verfügbare Rezept-Kategorien\n--------------------\n"
6868
for _, c := range rh.Categories {
6969
recipeHub += c.Title + "\n"
7070
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Not affiliated with Rewe in any way.
2323
A basic go implementation + documentation of the rewe api is available in the [pkg](pkg) directory.
2424

2525
At some point this repo will contain:
26-
- instructions/scripts for extracting the certificate
2726
- a cli and tui for the go-implementation
27+
- a powershell script for extracting the password incase it changes (script will not work if anything else changes because of static linking)
2828
- (maybe) a basic python implementation for fetching discounts if no one wants to maintain one ([torbens fork](https://github.com/torbenpfohl/rewe-discounts) is already functional)
2929

3030
## misc

0 commit comments

Comments
 (0)