update module to own version

This commit is contained in:
2020-07-27 18:17:50 +02:00
parent 2441e55972
commit b4ab6497b5
11 changed files with 58 additions and 58 deletions

View File

@@ -5,7 +5,7 @@ CLI tool to extract translation strings from Go packages into .POT files.
## Installation
```
go install github.com/leonelquinteros/gotext/cli/xgotext
go install git.deineagentur.com/DeineAgenturUG/gotext/cli/xgotext
```
## Usage

View File

@@ -4,9 +4,9 @@ import (
"errors"
"fmt"
"github.com/leonelquinteros/gotext"
alias "github.com/leonelquinteros/gotext"
"github.com/leonelquinteros/gotext/cli/xgotext/fixtures/pkg"
"git.deineagentur.com/DeineAgenturUG/gotext"
alias "git.deineagentur.com/DeineAgenturUG/gotext"
"git.deineagentur.com/DeineAgenturUG/gotext/cli/xgotext/fixtures/pkg"
)
// Fake object with methods similar to gotext

View File

@@ -1,6 +1,6 @@
package pkg
import "github.com/leonelquinteros/gotext"
import "git.deineagentur.com/DeineAgenturUG/gotext"
type SubTranslate struct {
L gotext.Locale

View File

@@ -5,7 +5,7 @@ import (
"log"
"strings"
"github.com/leonelquinteros/gotext/cli/xgotext/parser"
"git.deineagentur.com/DeineAgenturUG/gotext/cli/xgotext/parser"
)
var (

View File

@@ -165,7 +165,7 @@ func (g *GoFile) checkType(rawType types.Type) bool {
return g.checkType(t.Elem())
case *types.Named:
if t.Obj().Pkg() == nil || t.Obj().Pkg().Path() != "github.com/leonelquinteros/gotext" {
if t.Obj().Pkg() == nil || t.Obj().Pkg().Path() != "git.deineagentur.com/DeineAgenturUG/gotext" {
return false
}
default:
@@ -187,7 +187,7 @@ func (g *GoFile) inspectCallExpr(n *ast.CallExpr) {
// object is a package if the Obj is not set
if e.Obj == nil {
pkg, ok := g.importedPackages[e.Name]
if !ok || pkg.PkgPath != "github.com/leonelquinteros/gotext" {
if !ok || pkg.PkgPath != "git.deineagentur.com/DeineAgenturUG/gotext" {
return
}