mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Translate application in Russian
This commit is contained in:
parent
37ab6eec15
commit
0e23f37f57
13 changed files with 597 additions and 17 deletions
|
@ -82,12 +82,18 @@ func basename(filename string) string {
|
|||
}
|
||||
|
||||
func stripExtension(filename string) string {
|
||||
filename = strings.TrimSuffix(filename, filepath.Ext(filename))
|
||||
filename = strings.TrimSuffix(filename, path.Ext(filename))
|
||||
return strings.Replace(filename, " ", "_", -1)
|
||||
}
|
||||
|
||||
func glob(pattern string) []string {
|
||||
// There is no Glob function in path package, so we have to use filepath and replace in case of Windows
|
||||
files, _ := filepath.Glob(pattern)
|
||||
for i := range files {
|
||||
if strings.Contains(files[i], "\\") {
|
||||
files[i] = strings.Replace(files[i], "\\", "/", -1)
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue