File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525)
2626
2727func setPo (poFile string ) {
28- po = new ( gotext.Po )
28+ po = gotext .NewPo ( )
2929 po .Parse ([]byte (poFile ))
3030}
3131
@@ -39,7 +39,7 @@ func TestPoTranslation(t *testing.T) {
3939}
4040
4141func TestNoLocaleSet (t * testing.T ) {
42- po = new ( gotext.Po )
42+ po = gotext .NewPo ( )
4343 require .Equal (t , "test-key" , Tr ("test-key" ))
4444}
4545
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ var po *gotext.Po
2828var contents embed.FS
2929
3030func init () {
31- po = new ( gotext.Po )
31+ po = gotext .NewPo ( )
3232}
3333
3434func supportedLocales () []string {
@@ -75,6 +75,6 @@ func setLocale(locale string) {
7575 if err != nil {
7676 panic ("Error reading embedded i18n data: " + err .Error ())
7777 }
78- po = new ( gotext.Po )
78+ po = gotext .NewPo ( )
7979 po .Parse (poFile )
8080}
You can’t perform that action at this time.
0 commit comments