Skip to content

Commit

Permalink
'#1864 Some Internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdalla committed Feb 22, 2024
1 parent 2f03280 commit 9cc8dd1
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,7 @@ TimeLineGraph.uncheckEventItems=Uncheck corresponding event type items
IntervalDefinitionDialog.Title=Time line chart defined ranges
IntervalDefinitionDialog.dateFormat=MM/dd/yyyy
IntervalDefinitionDialog.hourFormat=HH:mm:ss
IntervalDefinitionDialog.Exit=Exit
IntervalDefinitionDialog.Exit=Exit
TimeEventGroup.BasicProperties=Basic Properties
IndexTimeStampCache.loadingMessage=Starting to load time cache of [{}] to {} event type group.
IndexTimeStampCache.buildingMessage=Starting to build time cache of [{}] to {} event type group.
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,6 @@ IntervalDefinitionDialog.Title=Zeitlininechart festgelegte Bereiche
IntervalDefinitionDialog.dateFormat=MM/dd/yyyy
IntervalDefinitionDialog.hourFormat=HH:mm:ss
IntervalDefinitionDialog.Exit=Beenden
TimeEventGroup.BasicProperties=Basic Properties(TBT)
IndexTimeStampCache.loadingMessage=Starting to load time cache of [{}] to {} event type group.(TBT)
IndexTimeStampCache.buildingMessage=Starting to build time cache of [{}] to {} event type group.(TBT)
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,6 @@ IntervalDefinitionDialog.Title=Rangos definidos en el gráfico de tiempo
IntervalDefinitionDialog.dateFormat=MM/dd/yyyy
IntervalDefinitionDialog.hourFormat=HH:mm:ss
IntervalDefinitionDialog.Exit=Salir
TimeEventGroup.BasicProperties=Basic Properties(TBT)
IndexTimeStampCache.loadingMessage=Starting to load time cache of [{}] to {} event type group.(TBT)
IndexTimeStampCache.buildingMessage=Starting to build time cache of [{}] to {} event type group.(TBT)
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,6 @@ IntervalDefinitionDialog.Title=Grafico sequenza temporale con intervalli definit
IntervalDefinitionDialog.dateFormat=dd/MM/yyyy
IntervalDefinitionDialog.hourFormat=HH:mm:ss
IntervalDefinitionDialog.Exit=Esci
TimeEventGroup.BasicProperties=Basic Properties(TBT)
IndexTimeStampCache.loadingMessage=Starting to load time cache of [{}] to {} event type group.(TBT)
IndexTimeStampCache.buildingMessage=Starting to build time cache of [{}] to {} event type group.(TBT)
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,6 @@ IntervalDefinitionDialog.Title=Intervalos definidos no gráfico
IntervalDefinitionDialog.dateFormat=MM/dd/yyyy
IntervalDefinitionDialog.hourFormat=HH:mm:ss
IntervalDefinitionDialog.Exit=Sair
TimeEventGroup.BasicProperties=Propriedades básicas
IndexTimeStampCache.loadingMessage=Carregando índice de [{}] para o grupo de eventos {}.
IndexTimeStampCache.buildingMessage=Construindo índice de [{}] para o grupo de eventos {}.
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ public void actionPerformed(ActionEvent e) {
refreshChart(false);
}

public void info(String info) {
loadingLabelText.setText(info);
public void info(String info, String period, String groupname) {
loadingLabelText.setText(info.replaceFirst("\\{\\}", period).replaceFirst("\\{\\}", groupname));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import org.roaringbitmap.RoaringBitmap;

import iped.app.ui.Messages;

/**
* Class that represents a collection of event to use as a filter to graph
* events viewing. Also, the cache will be managed/persisted based on this event
Expand All @@ -14,7 +16,8 @@
*/
public class TimeEventGroup {
public static final TimeEventGroup ALL_EVENTS = new TimeEventGroup();
public static final TimeEventGroup BASIC_EVENTS = new TimeEventGroup("BasicProperties");
public static final TimeEventGroup BASIC_EVENTS = new TimeEventGroup(
Messages.get("TimeEventGroup.BasicProperties"));

HashSet eventNames = new HashSet<String>();
RoaringBitmap eventOrds = new RoaringBitmap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import iped.app.timelinegraph.IpedChartsPanel;
import iped.app.timelinegraph.TimeEventGroup;
import iped.app.timelinegraph.cache.persistance.CachePersistence;
import iped.app.ui.Messages;
import iped.engine.core.Manager;
import iped.viewers.api.IMultiSearchResultProvider;

Expand Down Expand Up @@ -89,8 +90,8 @@ public void run() {
if (!cacheExists) {
Date d1 = new Date();
logger.info("Starting to build time cache of [{}]...", periodClassesToCache.toString());
ipedChartsPanel.info("Starting to build time cache of [" + periodClassesToCache.toString() + "] to "
+ teGroup.getName() + " event type group");
ipedChartsPanel.info(Messages.get("IndexTimeStampCache.buildingMessage"),
periodClassesToCache.toString(), teGroup.toString());

ArrayList<EventTimestampCache> cacheLoaders = new ArrayList<EventTimestampCache>();

Expand Down Expand Up @@ -141,8 +142,8 @@ public void run() {
}

} else {
ipedChartsPanel.info("Starting to load time cache of [" + periodClassesToCache.toString() + "] to "
+ teGroup.getName() + " event type group");
ipedChartsPanel.info(Messages.get("IndexTimeStampCache.loadingMessage"),
periodClassesToCache.toString(), teGroup.toString());

CachePersistence cp = CachePersistence.getInstance();
for (Class periodClasses : periodClassesToCache) {
Expand Down

0 comments on commit 9cc8dd1

Please sign in to comment.