mirror of https://github.com/tstellar/bygfoot.git
Added build file.
This commit is contained in:
parent
fb01c1e82d
commit
9d2fb89452
|
@ -0,0 +1,271 @@
|
|||
# Makefile for program source directory in GNU NLS utilities package.
|
||||
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
||||
#
|
||||
# This file file be copied and used freely without restrictions. It can
|
||||
# be used in projects which are not available under the GNU Public License
|
||||
# but which still want to provide support for the GNU gettext functionality.
|
||||
# Please note that the actual code is *not* freely available.
|
||||
#
|
||||
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
|
||||
# instead of PACKAGE and to look for po2tbl in ./ not in intl/
|
||||
#
|
||||
# - Modified by jacob berkman <jacob@ximian.com> to install
|
||||
# Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
|
||||
|
||||
GETTEXT_PACKAGE = bygfoot
|
||||
PACKAGE = bygfoot
|
||||
VERSION = 0.1
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
|
||||
srcdir = .
|
||||
top_srcdir = ..
|
||||
|
||||
|
||||
prefix = /usr/local
|
||||
exec_prefix = ${prefix}
|
||||
datarootdir = ${prefix}/share
|
||||
datadir = ${datarootdir}
|
||||
libdir = ${exec_prefix}/lib
|
||||
localedir = $(libdir)/locale
|
||||
gnulocaledir = $(datadir)/locale
|
||||
gettextsrcdir = $(datadir)/glib-2.0/gettext/po
|
||||
subdir = po
|
||||
|
||||
INSTALL = /Users/gy/bin/install-check
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
MKINSTALLDIRS = $(top_srcdir)/./mkinstalldirs
|
||||
|
||||
CC = gcc
|
||||
GENCAT = @GENCAT@
|
||||
GMSGFMT = /Users/gy/gtk/inst/bin/msgfmt
|
||||
MSGFMT = /Users/gy/gtk/inst/bin/msgfmt
|
||||
MSGFMT_OPTS = -c
|
||||
XGETTEXT = /Users/gy/gtk/inst/bin/xgettext
|
||||
MSGMERGE = msgmerge
|
||||
|
||||
DEFS = -DHAVE_CONFIG_H
|
||||
CFLAGS = -O2 -gstabs+3 -std=gnu89
|
||||
CPPFLAGS = -I/Users/gy/gtk/inst/include
|
||||
|
||||
INCLUDES = -I.. -I$(top_srcdir)/intl
|
||||
|
||||
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
|
||||
|
||||
SOURCES =
|
||||
POFILES = de.po nl.po fr.po pl.po ro.po bg.po zh.po es.po da.po sv.po it.po
|
||||
GMOFILES = de.gmo nl.gmo fr.gmo pl.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo
|
||||
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
|
||||
$(POFILES) $(GMOFILES) $(SOURCES)
|
||||
|
||||
POTFILES = \
|
||||
|
||||
CATALOGS = de.gmo nl.gmo fr.gmo pl.gmo ro.gmo bg.gmo zh.gmo es.gmo da.gmo sv.gmo it.gmo
|
||||
CATOBJEXT = .gmo
|
||||
INSTOBJEXT = .mo
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) $<
|
||||
|
||||
.po.pox:
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
$(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*.pox
|
||||
|
||||
.po.mo:
|
||||
$(MSGFMT) -o $@ $<
|
||||
|
||||
.po.gmo:
|
||||
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
|
||||
&& rm -f $$file && $(GMSGFMT) $(MSGFMT_OPTS) -o $$file $<
|
||||
|
||||
.po.cat:
|
||||
sed -f ../intl/po2msg.sed < $< > $*.msg \
|
||||
&& rm -f $@ && $(GENCAT) $@ $*.msg
|
||||
|
||||
|
||||
all: all-yes
|
||||
|
||||
all-yes: $(CATALOGS)
|
||||
all-no:
|
||||
|
||||
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
|
||||
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--flag=g_strdup_printf:1:c-format \
|
||||
--flag=g_string_printf:2:c-format \
|
||||
--flag=g_string_append_printf:2:c-format \
|
||||
--flag=g_error_new:3:c-format \
|
||||
--flag=g_set_error:4:c-format \
|
||||
--flag=g_markup_printf_escaped:1:c-format \
|
||||
--flag=g_log:3:c-format \
|
||||
--flag=g_print:1:c-format \
|
||||
--flag=g_printerr:1:c-format \
|
||||
--flag=g_printf:1:c-format \
|
||||
--flag=g_fprintf:2:c-format \
|
||||
--flag=g_sprintf:2:c-format \
|
||||
--flag=g_snprintf:3:c-format \
|
||||
--flag=g_scanner_error:2:c-format \
|
||||
--flag=g_scanner_warn:2:c-format \
|
||||
--files-from=$(srcdir)/POTFILES.in \
|
||||
&& test ! -f $(GETTEXT_PACKAGE).po \
|
||||
|| ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
|
||||
&& mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )
|
||||
|
||||
install: install-exec install-data
|
||||
install-exec:
|
||||
install-data: install-data-yes
|
||||
install-data-no: all
|
||||
install-data-yes: all
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
|
||||
fi
|
||||
@catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
case "$$cat" in \
|
||||
*.gmo) destdir=$(gnulocaledir);; \
|
||||
*) destdir=$(localedir);; \
|
||||
esac; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $$dir; \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
|
||||
fi; \
|
||||
if test -r $$cat; then \
|
||||
$(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
|
||||
else \
|
||||
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
echo "installing $(srcdir)/$$cat as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
|
||||
fi; \
|
||||
if test -r $$cat.m; then \
|
||||
$(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
|
||||
else \
|
||||
if test -r $(srcdir)/$$cat.m ; then \
|
||||
$(INSTALL_DATA) $(srcdir)/$$cat.m \
|
||||
$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
echo "installing $(srcdir)/$$cat as" \
|
||||
"$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
|
||||
else \
|
||||
true; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
if test "$(PACKAGE)" = "glib"; then \
|
||||
if test -r "$(MKINSTALLDIRS)"; then \
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
|
||||
else \
|
||||
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
|
||||
fi; \
|
||||
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
|
||||
$(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
||||
else \
|
||||
: ; \
|
||||
fi
|
||||
|
||||
# Define this as empty until I found a useful application.
|
||||
installcheck:
|
||||
|
||||
uninstall:
|
||||
catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
|
||||
rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
|
||||
done
|
||||
if test "$(PACKAGE)" = "glib"; then \
|
||||
rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
|
||||
fi
|
||||
|
||||
check: all
|
||||
|
||||
dvi info tags TAGS ID:
|
||||
|
||||
mostlyclean:
|
||||
rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
|
||||
rm -fr *.o
|
||||
|
||||
clean: mostlyclean
|
||||
|
||||
distclean: clean
|
||||
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
|
||||
|
||||
maintainer-clean: distclean
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
rm -f $(GMOFILES)
|
||||
|
||||
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
|
||||
dist distdir: update-po $(DISTFILES)
|
||||
dists="$(DISTFILES)"; \
|
||||
for file in $$dists; do \
|
||||
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|
||||
|| cp -p $(srcdir)/$$file $(distdir); \
|
||||
done
|
||||
|
||||
update-po: Makefile
|
||||
$(MAKE) $(GETTEXT_PACKAGE).pot
|
||||
tmpdir=`pwd`; \
|
||||
cd $(srcdir); \
|
||||
catalogs='$(CATALOGS)'; \
|
||||
for cat in $$catalogs; do \
|
||||
cat=`basename $$cat`; \
|
||||
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
|
||||
echo "$$lang:"; \
|
||||
if $(MSGMERGE) $$lang.po $(GETTEXT_PACKAGE).pot -o $$tmpdir/$$lang.new.po; then \
|
||||
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
else \
|
||||
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
|
||||
:; \
|
||||
else \
|
||||
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
fi; \
|
||||
else \
|
||||
echo "msgmerge for $$cat failed!"; \
|
||||
rm -f $$tmpdir/$$lang.new.po; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
# POTFILES is created from POTFILES.in by stripping comments, empty lines
|
||||
# and Intltool tags (enclosed in square brackets), and appending a full
|
||||
# relative path to them
|
||||
POTFILES: POTFILES.in
|
||||
( if test 'x$(srcdir)' != 'x.'; then \
|
||||
posrcprefix='$(top_srcdir)/'; \
|
||||
else \
|
||||
posrcprefix="../"; \
|
||||
fi; \
|
||||
rm -f $@-t $@ \
|
||||
&& (sed -e '/^#/d' \
|
||||
-e "s/^\[.*\] +//" \
|
||||
-e '/^[ ]*$$/d' \
|
||||
-e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
|
||||
| sed -e '$$s/\\$$//') > $@-t \
|
||||
&& chmod a-w $@-t \
|
||||
&& mv $@-t $@ )
|
||||
|
||||
Makefile: Makefile.in.in ../config.status POTFILES
|
||||
cd .. \
|
||||
&& CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
|
||||
$(SHELL) ./config.status
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
64
src/news.c
64
src/news.c
|
@ -117,7 +117,8 @@ news_select(const GArray *news_array, gchar *title, gchar *subtitle,
|
|||
*title_id = *subtitle_id = -1;
|
||||
|
||||
for(i=0;i<news_array->len;i++)
|
||||
if(!news_check_article_for_repetition(g_array_index(news_array, NewsArticle, order_articles[i]).id) &&
|
||||
if((!news_check_article_for_repetition(g_array_index(news_array, NewsArticle, order_articles[i]).id) ||
|
||||
g_array_index(news_array, NewsArticle, order_articles[i]).priority > 20) &&
|
||||
misc_parse_condition(g_array_index(news_array, NewsArticle, order_articles[i]).condition, token_rep_news))
|
||||
break;
|
||||
|
||||
|
@ -551,6 +552,7 @@ news_set_league_cup_tokens(const Fixture *fix)
|
|||
gchar buf[SMALL];
|
||||
const Cup *cup;
|
||||
const CupRound *cupround;
|
||||
const Team *tm;
|
||||
|
||||
if(fix->teams[0]->clid < ID_CUP_START)
|
||||
misc_token_add(token_rep_news,
|
||||
|
@ -591,7 +593,7 @@ news_set_league_cup_tokens(const Fixture *fix)
|
|||
misc_int_to_char(cup->rounds->len - fix->round));
|
||||
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_neutral", &tokens),
|
||||
option_int("string_token_bool_cup_neutral", &tokens),
|
||||
misc_int_to_char(cupround->neutral));
|
||||
|
||||
cup_get_round_name(cup, fix->round, buf);
|
||||
|
@ -604,23 +606,35 @@ news_set_league_cup_tokens(const Fixture *fix)
|
|||
(cupround->tables->len == 0));
|
||||
|
||||
if(fix->decisive)
|
||||
{
|
||||
tm = (Team*)fixture_winner_of(fix, FALSE);
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_match_winner", &tokens),
|
||||
g_strdup(((Team*)fixture_winner_of(fix, FALSE))->name));
|
||||
g_strdup(tm->name));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_match_loser", &tokens),
|
||||
g_strdup(fix->teams[fix->teams[1] != tm]->name));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_match_winnern", &tokens),
|
||||
misc_int_to_char(fix->teams[1] == tm));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_match_losern", &tokens),
|
||||
misc_int_to_char(fix->teams[1] != tm));
|
||||
}
|
||||
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_national", &tokens),
|
||||
misc_int_to_char(query_league_cup_has_property(cup->id, "national")));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_international", &tokens),
|
||||
misc_int_to_char(query_league_cup_has_property(cup->id, "international")));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_promrel", &tokens),
|
||||
misc_int_to_char(query_league_cup_has_property(cup->id, "promotion")));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_cup_aux", &tokens),
|
||||
misc_int_to_char(query_league_cup_has_property(cup->id, "hide") ||
|
||||
query_league_cup_has_property(cup->id, "omit_from_history")));
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_national", &tokens),
|
||||
query_league_cup_has_property(cup->id, "national"));
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_international", &tokens),
|
||||
query_league_cup_has_property(cup->id, "international"));
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_promrel", &tokens),
|
||||
query_league_cup_has_property(cup->id, "promotion"));
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_aux", &tokens),
|
||||
query_league_cup_has_property(cup->id, "hide") ||
|
||||
query_league_cup_has_property(cup->id, "omit_from_history"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -633,26 +647,38 @@ news_set_fixture_tokens(const Fixture *fix)
|
|||
#endif
|
||||
|
||||
gchar buf[SMALL];
|
||||
gint res[2];
|
||||
gint avskill0, avskill1;
|
||||
|
||||
avskill0 = (gint)rint(team_get_average_skill(fix->teams[0], TRUE));
|
||||
avskill1 = (gint)rint(team_get_average_skill(fix->teams[1], TRUE));
|
||||
res[0] = math_sum_int_array(fix->result[0], 3);
|
||||
res[1] = math_sum_int_array(fix->result[1], 3);
|
||||
|
||||
fixture_result_to_buf(fix, buf, FALSE);
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_result", &tokens),
|
||||
g_strdup(buf));
|
||||
|
||||
fixture_result_to_buf(fix, buf, (math_sum_int_array(fix->result[0], 3) < math_sum_int_array(fix->result[1], 3)));
|
||||
fixture_result_to_buf(fix, buf, (res[0] < res[1]));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_result_rew", &tokens),
|
||||
g_strdup(buf));
|
||||
|
||||
fixture_result_to_buf(fix, buf, (math_sum_int_array(fix->result[0], 3) > math_sum_int_array(fix->result[1], 3)));
|
||||
fixture_result_to_buf(fix, buf, (res[0] > res[1]));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_result_rel", &tokens),
|
||||
g_strdup(buf));
|
||||
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_penalties", &tokens),
|
||||
(fix->result[0][2] + fix->result[1][2] != 0));
|
||||
|
||||
misc_token_add_bool(token_rep_news,
|
||||
option_int("string_token_bool_cup_extra", &tokens),
|
||||
(fix->result[0][2] + fix->result[1][2] == 0 &&
|
||||
fix->result[0][1] + fix->result[1][1] != 0));
|
||||
|
||||
misc_print_grouped_int(math_round_integer(fix->attendance, 2), buf);
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_attendance", &tokens),
|
||||
|
@ -676,7 +702,7 @@ news_set_fixture_tokens(const Fixture *fix)
|
|||
misc_int_to_char(fix->result[1][0]));
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_goal_diff", &tokens),
|
||||
misc_int_to_char(ABS(fix->result[0][0] - fix->result[1][0])));
|
||||
misc_int_to_char(ABS(res[0] - res[1])));
|
||||
|
||||
misc_token_add(token_rep_news,
|
||||
option_int("string_token_team_home", &tokens),
|
||||
|
|
|
@ -661,36 +661,36 @@ treeview2_set_up_news(GtkTreeView *treeview)
|
|||
|
||||
GtkTreeViewColumn *col;
|
||||
GtkCellRenderer *renderer;
|
||||
gint i;
|
||||
|
||||
gtk_tree_selection_set_mode(gtk_tree_view_get_selection(treeview),
|
||||
GTK_SELECTION_NONE);
|
||||
gtk_tree_view_set_headers_visible(treeview, FALSE);
|
||||
gtk_tree_view_set_rules_hint(treeview, FALSE);
|
||||
|
||||
col = gtk_tree_view_column_new();
|
||||
gtk_tree_view_append_column(treeview, col);
|
||||
renderer = treeview_helper_cell_renderer_text_new();
|
||||
gtk_tree_view_column_pack_start(col, renderer, TRUE);
|
||||
gtk_tree_view_column_add_attribute(col, renderer,
|
||||
"markup", 0);
|
||||
col = gtk_tree_view_column_new();
|
||||
gtk_tree_view_append_column(treeview, col);
|
||||
renderer = treeview_helper_cell_renderer_text_new();
|
||||
g_object_set(renderer, "wrap-mode", PANGO_WRAP_WORD, NULL);
|
||||
g_object_set(renderer, "wrap-width", 400, NULL);
|
||||
gtk_tree_view_column_pack_start(col, renderer, TRUE);
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer,
|
||||
treeview_helper_news,
|
||||
NULL, NULL);
|
||||
col = gtk_tree_view_column_new();
|
||||
gtk_tree_view_append_column(treeview, col);
|
||||
renderer = treeview_helper_cell_renderer_text_new();
|
||||
g_object_set(renderer, "wrap-mode", PANGO_WRAP_WORD, NULL);
|
||||
g_object_set(renderer, "wrap-width", 400, NULL);
|
||||
gtk_tree_view_column_pack_start(col, renderer, TRUE);
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer,
|
||||
treeview_helper_news_additional,
|
||||
NULL, NULL);
|
||||
for(i = 0; i < 3; i++)
|
||||
{
|
||||
col = gtk_tree_view_column_new();
|
||||
gtk_tree_view_append_column(treeview, col);
|
||||
renderer = treeview_helper_cell_renderer_text_new();
|
||||
gtk_tree_view_column_pack_start(col, renderer, TRUE);
|
||||
|
||||
if(i == 0)
|
||||
gtk_tree_view_column_add_attribute(col, renderer,
|
||||
"markup", 0);
|
||||
else if(i == 1)
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer,
|
||||
treeview_helper_news,
|
||||
NULL, NULL);
|
||||
else
|
||||
gtk_tree_view_column_set_cell_data_func(col, renderer,
|
||||
treeview_helper_news_additional,
|
||||
NULL, NULL);
|
||||
|
||||
g_object_set(renderer, "wrap-mode", PANGO_WRAP_WORD, NULL);
|
||||
g_object_set(renderer, "wrap-width", 400, NULL);
|
||||
g_object_set(renderer, "yalign", 0.0, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/** Show the news in the news treeview. */
|
||||
|
|
|
@ -88,12 +88,17 @@ string_token_result_rel _REL_
|
|||
string_token_bool_cup _CUP_
|
||||
string_token_bool_cup_knockout _CUPKO_
|
||||
string_token_cup_stage _CUPSTAGE_
|
||||
string_token_cup_neutral _CUPNEUTRAL_
|
||||
string_token_cup_national _CUPNATIONAL_
|
||||
string_token_cup_international _CUPINTERNATIONAL_
|
||||
string_token_cup_promrel _CUPPROMREL_
|
||||
string_token_cup_aux _CUPAUX_
|
||||
string_token_bool_cup_neutral _CUPNEUTRAL_
|
||||
string_token_bool_cup_national _CUPNATIONAL_
|
||||
string_token_bool_cup_international _CUPINTERNATIONAL_
|
||||
string_token_bool_cup_promrel _CUPPROMREL_
|
||||
string_token_bool_cup_aux _CUPAUX_
|
||||
string_token_bool_cup_penalties _CUPPEN_
|
||||
string_token_bool_cup_extra _CUPET_
|
||||
string_token_cup_match_winner _CUPMATCHWINNER_
|
||||
string_token_cup_match_loser _CUPMATCHLOSER_
|
||||
string_token_cup_match_winnern _CUPMATCHWINNERN_
|
||||
string_token_cup_match_losern _CUPMATCHLOSERN_
|
||||
string_token_bool_multiple_scorers0 _MULTIPLESCORERS0_
|
||||
string_token_bool_multiple_scorers1 _MULTIPLESCORERS1_
|
||||
string_token_scorers0 _SCORERS0_
|
||||
|
|
|
@ -22,9 +22,9 @@
|
|||
</choose_team>
|
||||
|
||||
<choose_team>
|
||||
<choose_team_sid>brazil1 argentina1 bolivia1_short venezuela1_short
|
||||
chile1_short paraguay1_short peru1_short ecuador1_short
|
||||
uruguay1_short colombia1_short mexico1_short</choose_team_sid>
|
||||
<choose_team_sid>brazil1 argentina1 bolivia1 venezuela1
|
||||
chile1 paraguay1 peru1 ecuador1
|
||||
uruguay1 colombia1 mexico1</choose_team_sid>
|
||||
<number_of_teams>1</number_of_teams>
|
||||
<randomly>1</randomly>
|
||||
<generate>1</generate>
|
||||
|
|
|
@ -74,9 +74,9 @@
|
|||
<title condition="_TWN_ = 1 and _CUPNEUTRAL = 0">_TW_ auswärts erfolgreich</title>
|
||||
<title condition="_WON_TWN__ > 3">_WON_TWN__-ter Sieg in Folge für _TW_</title>
|
||||
<title condition="_LOST_TLN__ > 3">_LOST_TLN__-te Niederlage in Folge für _TL_</title>
|
||||
<title condition="_UNBEATEN_TWN__ > 3">_TW_ seit _UNBEATEN_TWN__ Spielen ungeschlagen</title>
|
||||
<title condition="_UNBEATEN_TWN__ > 3">_TW_ seit _UNBEATEN_TWN__ Pflichtspielen ungeschlagen</title>
|
||||
<title condition="_WON_TWN__ > 3">_TW_ baut Siegesserie auf _WON_TWN__ Spiele aus</title>
|
||||
<title condition="_LOST_TLN__ > 3">_TL_ verliert _LOST_TLN__-tes Spiel in Folge</title>
|
||||
<title condition="_LOST_TLN__ > 3">_TL_ verliert _LOST_TLN__-tes Pflichtspiel in Folge</title>
|
||||
<title condition="_UNBEATEN_TWN__ > 3">Auch _TL_ kann _TW_ nicht bezwingen</title>
|
||||
<title condition="_LEAGUEWON_TWN__ > 3">_TW_ gewinnt _WON_TWN__-tes Ligaspiel in Folge</title>
|
||||
<title condition="_LEAGUELOST_TLN__ > 3">_TL_ bleibt glücklos in der Liga</title>
|
||||
|
@ -219,5 +219,29 @@
|
|||
<subtitle condition="_TWN_ = [_TLAYER0_ < _TLAYER1_]">_T[_TLAYER0_ L _TLAYER1_]_ lässt sich nicht durch den Klassenunterschied verunsichern und siegt _RE_.</subtitle>
|
||||
</news_article>
|
||||
|
||||
<news_article>
|
||||
<type>match</type>
|
||||
<priority>25</priority>
|
||||
<condition>_CUP_ = 1 and _CUPKO_ = 1 and _CUPPROMREL_ = 0 and _CUPAUX_ = 0 and _CUPSTAGE_ = 1 and _GD_ != 0</condition>
|
||||
<title>_CUPMATCHLOSER_ unterliegt in _LEAGUECUPNAME_-Finale</title>
|
||||
<title>_CUPMATCHWINNER_ gewinnt _LEAGUECUPNAME_</title>
|
||||
<title>_CUPMATCHWINNER_ _LEAGUECUPNAME_-Sieger</title>
|
||||
<title>_CUPMATCHWINNER_ gewinnt _LEAGUECUPNAME_-Finale</title>
|
||||
<title>_CUPMATCHWINNER_ besiegt _CUPMATCHLOSER_ in _LEAGUECUPNAME_-Finale</title>
|
||||
<title condition="_GD_ = 1">Spannendes _LEAGUECUPNAME_-Finale zwischen _T0_ und _T1_</title>
|
||||
<subtitle>_CUPMATCHLOSER_ hat das Nachsehen im _LEAGUECUPNAME_-Finale.</subtitle>
|
||||
<subtitle>_CUPMATCHLOSER_ unterliegt _REL_ im _LEAGUECUPNAME_-Finale.</subtitle>
|
||||
<subtitle>Anhänger von _CUPMATCHLOSER_ ziehen randalierend durch die Innenstadt nach der enttäuschenden _REL_-Niederlage.</subtitle>
|
||||
<subtitle>_CUPMATCHWINNER_ endlich am Ziel, nachdem auch _CUPMATCHLOSER_ bezwungen ist.</subtitle>
|
||||
<subtitle>_CUPMATCHWINNER_ ist auch von _CUPMATCHLOSER_ nicht aufzuhalten und gewinnt den Titel mit einem _REW_.</subtitle>
|
||||
<subtitle condition="_GD_ = 1 and _MULTIPLESCORERS_CUPMATCHWINNERN__ = 1">_SCORERS_CUPMATCHWINNERN__ verhelfen vor _AT_ Zusehern in einer Partie voller Spannung zum Titel.</subtitle>
|
||||
<subtitle condition="_GD_ = 1 and _MULTIPLESCORERS_CUPMATCHWINNERN__ = 0">_SCORERS_CUPMATCHWINNERN__ wird zum Matchwinner gegen _CUPMATCHLOSER_ beim _REW_.</subtitle>
|
||||
<subtitle condition="_GD_ = 1 and _GOALS_CUPMATCHWINNERN__ = 1">_SCORERS_CUPMATCHWINNERN__ entscheidet mit seinem Treffer die Partie gegen _CUPMATCHLOSER_ und bringt die Fans von _CUPMATCHWINNER_ zum Ausrasten.</subtitle>
|
||||
<subtitle condition="_GD_ = 2 and _MULTIPLESCORERS_CUPMATCHWINNERN__ = 1">_CUPMATCHWINNER_ kontrolliert die Finalbegegnung und gewinnt mit _REW_ den Titel.</subtitle>
|
||||
<subtitle condition="_GD_ = 2 and _MULTIPLESCORERS_CUPMATCHWINNERN__ = 0">_SCORERS_CUPMATCHWINNERN__ trifft gegen _CUPMATCHLOSER_ und darf den Pokal auf der Ehrenrunde tragen.</subtitle>
|
||||
<subtitle condition="_GD_ > 2">_CUPMATCHWINNER_ beherrscht _CUPMATCHLOSER_ in allen Belangen und gewinnt verdient das Finale.</subtitle>
|
||||
<subtitle condition="_GD_ > 2 and _MULTIPLESCORERS_CUPMATCHWINNERN__ = 1">_CUPMATCHLOSER_ wird in einer einseitigen Begegnung durch Tore von _SCORERS_CUPMATCHWINNERN__ zerlegt und muss bei der Siegerehrung zuschauen.</subtitle>
|
||||
</news_article>
|
||||
|
||||
</news>
|
||||
|
||||
|
|
Loading…
Reference in New Issue