From 482713a2984e076e55164e3437cf410a28e80bf3 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 22 Apr 2021 08:09:28 +0200 Subject: [PATCH] README.md: fixing broken links (#251) * README.md: fixing broken links * Apply suggestions from code review Co-authored-by: Nick Snyder --- README.md | 16 +++++++++------- v2/internal/plural/codegen/README.md | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d292ea3e..a13f268b 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ go-i18n is a Go [package](#package-i18n) and a [command](#command-goi18n) that helps you translate Go programs into multiple languages. -- Supports [pluralized strings](http://cldr.unicode.org/index/cldr-spec/plural-rules) for all 200+ languages in the [Unicode Common Locale Data Repository (CLDR)](http://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html). - - Code and tests are [automatically generated](https://github.com/nicksnyder/go-i18n/tree/master/i18n/language/codegen) from [CLDR data](http://cldr.unicode.org/index/downloads). +- Supports [pluralized strings](http://cldr.unicode.org/index/cldr-spec/plural-rules) for all 200+ languages in the [Unicode Common Locale Data Repository (CLDR)](https://www.unicode.org/cldr/charts/28/supplemental/language_plural_rules.html). + - Code and tests are [automatically generated](https://github.com/nicksnyder/go-i18n/tree/main/v2/internal/plural/codegen) from [CLDR data](http://cldr.unicode.org/index/downloads). - Supports strings with named variables using [text/template](http://golang.org/pkg/text/template/) syntax. - Supports message files of any format (e.g. JSON, TOML, YAML). -## Package i18n [![GoDoc](http://godoc.org/github.com/nicksnyder/go-i18n?status.svg)](http://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n) +## Package i18n +[![GoDoc](https://godoc.org/github.com/nicksnyder/go-i18n?status.svg)](https://godoc.org/github.com/nicksnyder/go-i18n/v2/i18n) The i18n package provides support for looking up messages according to a set of locale preferences. @@ -55,7 +56,8 @@ localizer.Localize(&i18n.LocalizeConfig{ }) // Nick has 2 cats. ``` -## Command goi18n [![GoDoc](http://godoc.org/github.com/nicksnyder/go-i18n?status.svg)](http://godoc.org/github.com/nicksnyder/go-i18n/v2/goi18n) +## Command goi18n +[![GoDoc](https://godoc.org/github.com/nicksnyder/go-i18n?status.svg)](https://godoc.org/github.com/nicksnyder/go-i18n/v2/goi18n) The goi18n command manages message files used by the i18n package. @@ -115,9 +117,9 @@ If you have added new messages to your program: ## For more information and examples: -- Read the [documentation](http://godoc.org/github.com/nicksnyder/go-i18n/v2). -- Look at the [code examples](https://github.com/nicksnyder/go-i18n/blob/master/v2/i18n/example_test.go) and [tests](https://github.com/nicksnyder/go-i18n/blob/master/v2/i18n/localizer_test.go). -- Look at an example [application](https://github.com/nicksnyder/go-i18n/tree/master/v2/example). +- Read the [documentation](https://godoc.org/github.com/nicksnyder/go-i18n/v2). +- Look at the [code examples](https://github.com/nicksnyder/go-i18n/blob/main/v2/i18n/example_test.go) and [tests](https://github.com/nicksnyder/go-i18n/blob/main/v2/i18n/localizer_test.go). +- Look at an example [application](https://github.com/nicksnyder/go-i18n/tree/main/v2/example). ## License diff --git a/v2/internal/plural/codegen/README.md b/v2/internal/plural/codegen/README.md index 41a0094d..f1f5ff80 100644 --- a/v2/internal/plural/codegen/README.md +++ b/v2/internal/plural/codegen/README.md @@ -1,6 +1,6 @@ # How to upgrade CLDR data 1. Go to http://cldr.unicode.org/index/downloads to find the latest version. -1. Download the latest version of cldr-common (e.g. http://unicode.org/Public/cldr/37/cldr-common-37.0.zip) +1. Download the latest version of cldr-common (e.g. https://unicode.org/Public/cldr/39/cldr-common-39.0.zip) 1. Unzip and copy `common/supplemental/plurals.xml` to this directory. 1. Run `generate.sh`.