Archived
1
0

more i18n stuff

This commit is contained in:
Jeff Becker 2017-10-10 12:39:16 -04:00
parent 0848412aa0
commit 78797c680f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 6 additions and 2 deletions

View File

@ -634,7 +634,11 @@ func (self *thread) Board() string {
} }
func (self *thread) BoardURL() string { func (self *thread) BoardURL() string {
return fmt.Sprintf("%sb/%s/", self.Prefix(), self.Board()) i18n := self._i18n
if i18n == nil {
i18n = I18nProvider
}
return fmt.Sprintf("%sb/%s/?lang=%s", self.Prefix(), self.Board(), i18n.Name)
} }
func (self *thread) PostCount() int { func (self *thread) PostCount() int {

View File

@ -35,7 +35,7 @@
<h2><a href="{{thread.Prefix}}?lang={{i18n.Name}}">CHANGOLIA</a></h2> <h2><a href="{{thread.Prefix}}?lang={{i18n.Name}}">CHANGOLIA</a></h2>
<b>Most of the rest of the wild west.</b> <b>Most of the rest of the wild west.</b>
</div> </div>
<center><b><a href="{{thread.BoardURL}}?lang={{i18n.Name}}">{{thread.Board}}</a></b></center> <center><b><a href="{{thread.BoardURL}}">{{thread.Board}}</a></b></center>
<br /> <br />
{{{form}}} {{{form}}}