update module to own version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package pkg
|
||||
|
||||
import "github.com/leonelquinteros/gotext"
|
||||
import "git.deineagentur.com/DeineAgenturUG/gotext"
|
||||
|
||||
type SubTranslate struct {
|
||||
L gotext.Locale
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
"github.com/leonelquinteros/gotext/cli/xgotext/parser"
|
||||
"git.deineagentur.com/DeineAgenturUG/gotext/cli/xgotext/parser"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user